I've got a simple conditional that checks if an id is equal to something and also checks if it is a number. I'm also using isNumeric with a combination of .length. But for some reason the isNumeric part is not working as I can enter a string of letters and it doesn't validate. Any ideas?
var $this = $(this);
if(this.id == "userName" && $.isNumeric($this.val()).length < 10 ){
//do something
}