SyntaxFix
Write A Post
Hire A Developer
Questions
var yourfield = $('fieldname').val(); if($.isNumeric(yourfield)) { console.log('IM A NUMBER'); } else { console.log('not a number'); }
JQUERY DOCS:
https://api.jquery.com/jQuery.isNumeric/