Hi,
Here I tried some code for you
Try this
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script language ="javascript" >
function chg() {
if (parseInt(event.keyCode) > 64 ) {
if (parseInt(event.keyCode) < 91) {
}
else {
var str = new String();
str = document.getElementById("txtmbno").value;
document.getElementById("txtmbno").value = str.substring(0, str.length - 1);
}
}
else {
var str = new String();
str = document.getElementById("txtmbno").value;
document.getElementById("txtmbno").value = str.substring(0, str.length - 1);
}
return true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type ="text" id="txtmbno" onkeyup ="chg()" />
</div>
</form>
</body>
</html>
you can change this code for accepting only numeric also
All the Best