Take Input Field In HTML Which Accept Only Numeric Values Using jQuery
First include jQuery Lib. In your Page…
#iban1,#iban2 are the input text field on which we add this validation
jQuery('#iban1,#iban2').keyup(function(){ jQuery(this).val(jQuery(this).val().replace(/[^0-9\.]/g,'')); });
Categories:
jQuery
View Comments
Comment or Ask a Question
Quick Links