Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Is there any way to simulate the click event of 'Add another term' using javascript? I tried like this

 jQuery('#edit-field-attribute-und-add-more').trigger('click');

but no effect

share|improve this question

1 Answer

Try this code

jQuery('#edit-field-attribute-und-add-more').click();
share|improve this answer
tried that, but no effect. I need the event that is bound with Add another term be invoked – user7282 May 11 at 8:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.