Back to Top

Take Input Field In HTML Which Accept Only Numeric Values Using jQuery

Updated 29 February 2024

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,''));
	});

Start your headless eCommerce
now.
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home