How to use jquery validation plugin in rails

后端 未结 3 514
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 19:49

How to use jquery validation plugin for the rails form given below.

I want complete steps about how to make the it for different fields

3条回答
  •  感情败类
    2021-02-06 20:10

    Got the solution to add range ,min ,max etc

    we have to use

       <%= f.text_field :mobile,:class => "required number",:minlength=>"10",
       :maxlength=>"10"%>
    

    the above for mobile

提交回复
热议问题