开发者

how to get the users id's on after select checkbox from fieldset using jquery

开发者 https://www.devze.com 2022-12-31 12:06 出处:网络
I am using this code to select the checbox from fieldset: $(\"fieldset:has(input[开发者_如何学Pythontype=\'checkbox\'])\")

I am using this code to select the checbox from fieldset:

$("fieldset:has(input[开发者_如何学Pythontype='checkbox'])")

its working fine on the fieldset I have studentid's I need to get the student id's which ever textbox is selected on the fieldset?

Can anybody help me out?

thanks


Try:

$("fieldset input[name=theName]:checkbox:checked").each(function() {
    alert(this.value);
});
0

精彩评论

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