[jQuery] Re: How do i generify this action to happen for every radio button with id=other

2009-01-16 Thread kat...@googlemail.com
Sure, but I was hoping for a generic kind of answer like if input=other than ... Form code is generated by the drupal Form API [code] div class=form-item div class=form-radios div class=form-item id=edit-sample-garden-wrapper label class=optioninput type=radio id=edit-sample-garden

[jQuery] Re: How do i generify this action to happen for every radio button with id=other

2009-01-16 Thread Beres Botond
http://docs.jquery.com/Selectors/attributeContains#attributevalue $(input[id*='other']).bind(evt, function(){ alert('This should get called when you click on any radio if it's id contains other') if ($(this).attr('checked') == 'checked' $(this).val() == 'other') {

[jQuery] Re: How do i generify this action to happen for every radio button with id=other

2009-01-15 Thread Dave Methvin
Can you post the markup for one of the groups? You can probably use that to your advantage.