jquery - select all checkboxes with js array name

后端 未结 4 721
长发绾君心
长发绾君心 2021-02-02 10:31

I want to use a JQuery \"check all\" function in a form like this: http://jetlogs.org/jquery/jquery_select_all.html

My problem is I am generating my form from a php scr

4条回答
  •  醉酒成梦
    2021-02-02 10:50

    Escape internal brackets with \\(no space) - it should fix the problem.

    This selector works for me:

    $('input[name=items\\[\\]]')
    

提交回复
热议问题