Required field that should be filled only with integers
<p>I am working upon validation of a field where in the field should be filled only with integers and validation that the field is needed is also given?</p>

<p>I inserted the script tags as follows:</p>

<pre><code>&lt;script type="text/javascript" src="jquery.numeric.js"&gt;&lt;/script&gt;
&lt;script&gt;
jQuery(document).ready(function(){
$("#estvalue").numeric({
negative: false 
}, 
function() {
alert("No negative values");
this.value = "";
this.focus(); });
});
  &lt;/script&gt;
&lt;input name="Est_Value" id="estvalue" class="regi_input_1" style="width: 150px; height: 25px;" type="text" /&gt;
</code></pre>
