Use .triggerHandler('click') instead of .click()