I want to allow only numeric values to be entered into the text and if user enters alphabetic character it should warn the user. Any suggestion for optimized and short javas
use following code
function numericFilter(txb) { txb.value = txb.value.replace(/[^\0-9]/ig, ""); }
call it in on key up