Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$('.inp input').keyup(function(e) {
up = $(this).val();
if ((+up) > (+max)) { // +val converts string to number
alert('too high '+e.which);
return false;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment