jquery function not working in Safari? -


i have following functions not working in safari pc or mac:

var $j = jquery.noconflict(); $j(document).ready(function(){ $j(".wpp_search_button.submit:eq(0)").click(function(){ _gaq.push(['_trackevent', 'search', 'header search', '', 1]); }); }); $j(document).ready(function(){ $j(".wpp_search_button.submit:eq(1)").click(function(){ _gaq.push(['_trackevent', 'search', 'body search', '', 1]); }); }); 

it supposed track onclick searches in site, doen't. suggestion?

my suggestion try , bind mousedown see if fixes issue:

$j(".wpp_search_button.submit:eq(0)").mousedown(function(){ _gaq.push(['_trackevent', 'search', 'header search', '', 1]); }); $j(".wpp_search_button.submit:eq(0)").mousedown(function(){ _gaq.push(['_trackevent', 'search', 'header search', '', 1]); }); 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -