I am trying to simulate a click on on an element. HTML for the same is as follows
Here, try this one:
$('#gift-close').on('click', function () { _gaq.push(['_trackEvent','voucher_new','cart',$(this).attr('rel')+'-mask_x_button-inaction']); });