tags:

views:

16

answers:

1

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

$("fieldset:has(input[type='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

A: 

Try:

$("fieldset input[name=theName]:checkbox:checked").each(function() {
    alert(this.value);
});
karim79
input[name=thename] is wehre it is pointing? please correct me if i am wrong..
kumar