Simulate a click on 'a' element using javascript/jquery

前端 未结 8 2287
别跟我提以往
别跟我提以往 2020-12-04 17:08

I am trying to simulate a click on on an element. HTML for the same is as follows



        
8条回答
  •  悲哀的现实
    2020-12-04 17:56

    Here, try this one:

    $('#gift-close').on('click', function () {
        _gaq.push(['_trackEvent','voucher_new','cart',$(this).attr('rel')+'-mask_x_button-inaction']);
    });
    

提交回复
热议问题