Jquery how to check if a input has a number higher then 99

后端 未结 8 1185
离开以前
离开以前 2021-01-06 05:08

Was wanting to know how to check using jquery if a input contains a number higher then 99

8条回答
  •  心在旅途
    2021-01-06 05:23

    I guess typically with jQuery you would have to have the name of the form

    number: Comment:

    you would select the form and its input.

    var myInt = parseInt(jQuery("#form-number-url").attr("value"));
    

    then you can compare it with any other integer.

提交回复
热议问题