开发者

how to find element with its name in jquery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜