I have some HTML code like this:
<input id="fieldname-1" name="field_name[value][1]" value="1" type="checkbox" />
<input id="fieldname-2" name="field_name[value][2]" value="2" type="checkbox" />
<input id="fieldname-3" name="field_name[value][3]" value="3" type="checkbox" />
I want to access this with jQuery like:
$('input[field_name]').change( function() { dosomething(); });
i can not add a class field to do this by calling $('.classname')
because it is rendered by the cck module of Drupal and i don't want to add this to the theme layer.
The best thing would be to let my module add a class for every field. but a quicker solution would be to know how to access these fields by jQuery