Hi guys i m new to jquery and got stuck at a point ,i need ur help to Validate the textbox that only accept the numerics value on onclick function of the submit button
Here is the jquery code
<script>
function validate()
{
var number=$('#number').val();
if(number=="")
{
alert("only number");
return false;
}
}
and html
<input type="text" id="number"value="" />
<input type="submit" onclick="return validate();"/>