开发者

how to find element with its name in jquery

开发者 https://www.devze.com 2023-02-01 06:17 出处:网络
How to find checkbox with name checkbox[] $(\"#a_tag_id\").parent(\'tr.section_quick_edit\').find(\'input:checkbox[name=c开发者_StackOverflow社区heckbox[]]\').val();

How to find checkbox with name checkbox[]

$("#a_tag_id").parent('tr.section_quick_edit').find('input:checkbox[name=c开发者_StackOverflow社区heckbox[]]').val();


$("#a_tag_id").parent('tr.section_quick_edit').find("input:checkbox[name='checkbox[]']").val();

Notice the extra quotes.

Bob


I think what you are looking for is

$("#a_tag_id").parent('tr.section_quick_edit').find('input:checkbox[name=checkbox[]]').attr('name');
0

精彩评论

暂无评论...
验证码 换一张
取 消