更新时间:2023-02-21 11:55:15
这个我用过的代码很久就在我的笔记里,不知道我从哪里来提供参考和信用:)。试试这个。
(document).ready( function (){
( # Empid)。keydown( function (e){
// 检查退格,删除,制表,转义,输入,不限制
如果(
<input type = "text" runat="server" id="Empid" Placeholder = "Employee id">
In run mode as follows
Employee id ( numbers only allowed)
for that how can i do please help me.
What I have tried:
how to make input tag numbes only allowed
this the code i had used long back was in my notes, not sure where i had got from to provide the reference and credit :). Try this.
(document).ready(function() {
("#Empid").keydown(function (e) { // Check for backspace, delete, tab, escape, enter, do not restrict that if (