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?
:number, as it says:textis forinput type="text"so i think it should be same thing for other types. Is that becausenumbertype is from HTML5?