javascript - jquery restricting numbers greater than required -
In jquery, there is a need to restrict the typing of more than 20 numbers into a text box, how to implement it.
Any help is appreciated.
& lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; H: Input text id = "actual card" style class = "input-lesson-bx" & gt; & Lt; / H: Input Text & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; Attr ('maxlength',
$ ("# physical card") '20'); For verification of numbers: Validate $ ("# actual card") ({rule: {field: {expected: true, number: true}}});
Comments
Post a Comment