i have a dynamic checkbox created by drupal like so that i want to
disable all the values:
<input name="emailpublish_sendemail_roles[2]" id="edit-emailpublish-
sendemail-roles-2" />
<input name="emailpublish_sendemail_roles[3]" id="edit-emailpublish-
sendemail-roles-3" />
<input name="emailpublish_sendemail_roles[10]" id="edit-emailpublish-
sendemail-roles-10" />
<input name="emailpublish_sendemail_roles[13]" id="edit-emailpublish-
sendemail-roles-13" />

i was wondering is there anyway to target them without trying to guess
(like i was gonna target an id of an input field before that fieldset,
go up a few ancestors then goto the next fieldset, get the checkboxes
from first subfieldset under it, cuase there might be other checkbox
groups, and disable those checkboxes) ?

hopefully theres a wildcard operator :) like so but i doubt it:
$('input[name=emailpublish_sendemail_roles[*]').attr({disabled:
"disabled", checked: ''});

Reply via email to