see this
http://www.aspdotnet-suresh.com/2013/04/jquery-allow-only-numbers-in-textbox.html[
^]
I had modified the function given in above link as per your need and pasted as below...you can chk..hope it helps..
<script type="text/javascript">
var IsNumber = true;
$(function () {
$('#txtNumeric').keydown(function (e) {
if (e.shiftKey || e.ctrlKey || e.altKey) {
e.preventDefault();
IsNumber = false;
} else {
var key = e.keyCode;
if (!((key == 8) || (key == 46) || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105))) {
e.preventDefault();
IsNumber = false;
}
else {
IsNumber = true;
}
}
});
$('#txtNumeric').keyup(function (e) {
if (!IsNumber) {
alert("Number only");
}
});
});
</script>