how to get the userid's after selecting the checkbox from fieldset

how to get the userid's after selecting the checkbox from fieldset

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