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);
});
精彩评论