Just Compile Director
$("#input1").keypress(function(e) { // allow digits only if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) { return false; } });
Goooood
If you type SHITF+1|3|4|8 thenresult: !#$(
That code doesn't work when you set values with SHIFT + 1|3|4|8 something like "!#$("
You can check a better solution here - http://stackoverflow.com/questions/12835341/how-to-allow-numeric-0-9-decimal-value-textbox-using-jquery#12835505Your solution is good, but latest link it's better.Regards!
Your comments, Feedbacks and Suggestions are very much valuable to me :)
My Dear readers, I am really thankful for being supportive all these years. This site was the first blog site I ever created in my life...
Goooood
ReplyDeleteIf you type SHITF+1|3|4|8 then
ReplyDeleteresult: !#$(
If you type SHITF+1|3|4|8 then
ReplyDeleteresult: !#$(
That code doesn't work when you set values with SHIFT + 1|3|4|8 something like "!#$("
ReplyDeleteYou can check a better solution here - http://stackoverflow.com/questions/12835341/how-to-allow-numeric-0-9-decimal-value-textbox-using-jquery#12835505
ReplyDeleteYour solution is good, but latest link it's better.
Regards!