I am trying to simulate a click on on an element. HTML for the same is as follows
Try adding a function inside the click() method.
click()
$('#gift-close').click(function(){ //do something here });
It worked for me with a function assigned inside the click() method rather than keeping it empty.