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
Try this code
jQuery('#edit-field-attribute-und-add-more').click();