how to find selected check box from FieldSet
I have a field set
<FieldSet>
<legnd>Studnetinfo</legend>
<intpu type="checkbox">
and here I am having StudnetId,FristName,lastname textboxes
</Fieldset>
$('#btnAll').click(function() {
$('#Details input[type=checkbox]').attr('checked', 'checked');开发者_高级运维
});
on button click i am checking all checkboxes and I have other button on the Filedset which i submit.
When I submit clicks I need to send only which ever is checked from Fieldset?
Here's a useful link for you and seems to do what you need.
http://drupal.org/node/116548
From that article:
$("input[@type=checkbox][@checked]").each(
function() {
// Insert code here
}
);
精彩评论