I’m trying to set function onFocusOut event with jQuery like:
$(':number').keypress(function (evt){
//validating cone
}
but it can’t select number types throwing an error
Error: Syntax error, unrecognized expression: number
Same code for type text works fine.
Does jQuery not know a number datatype? How to make it work?
Are you trying to select
<input>elements with thenumberas thetype? Try this: