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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -