Return to Snippet

Revision: 8185
at September 5, 2008 14:52 by melvitax


Initial Code
$('input.valid-number').bind('keypress', function(e) { 
	return ( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57)) ? false : true ;
})

Initial URL

                                

Initial Description

                                

Initial Title
Jquery Limit Input to Numbers

Initial Tags
jquery, validation

Initial Language
JavaScript