Was wanting to know how to check using jquery if a input contains a number higher then 99
if ($("#myfield").val() > 99) {
}
try this:
if(parseInt($("selector").val()) > 99) {
/*if it is*/
}
or if you are checking it on change:
$("selector").change(function(){
if(parseInt(this.value) > 99){
/*if it is*/
}
})
Edit as said in the below comments, it might be better to use parseFloat
instead of parseInt
to compare the numbers