select all checkboxes command jquery, javascript

前端 未结 3 840
小蘑菇
小蘑菇 2021-01-24 08:02

I\'m trying to get all of my checkboxes to be checked when clicking a link

looks like this: sele

3条回答
  •  后悔当初
    2021-01-24 08:13

    You're going to want to use the [name^=delete] selector ("starts with"), since your checkboxes names aren't exactly "delete", they're "delete[X]' for some number X.

提交回复
热议问题