i am trying to create an input field where the user can only type in numbers. this function is already working almost fine for me:
$(\'#p_first\').k
JavaScript: function isNumberKey(a){ var x=a.val(); a.val(x.replace(/[^0-9\.]/g,'')); } HTML: