JQuery - Set Attribute value

前端 未结 6 559
旧时难觅i
旧时难觅i 2021-02-05 02:22

I have following HTML with two elements having the same name




        
6条回答
  •  温柔的废话
    2021-02-05 02:42

    $("#chk0") is refering to an element with the id chk0. You might try adding id's to the elements. Ids are unique even though the names are the same so that in jQuery you can access a single element by it's id.

提交回复
热议问题