Select all checkboxes

后端 未结 3 1008
栀梦
栀梦 2020-12-19 18:05

In my Rails app I\'ve created a set of checkboxes as follows:

3条回答
  •  醉梦人生
    2020-12-19 18:59

    I think you can use query like that

    
    

    and the html will be something like

    <%= button_tag 'select / unselect all', id: 'check_all', class:'b' %>
    

提交回复
热议问题