I've got the following snippet of code on my webpage:
$('#activityFilter option').on('click', function() {
var text = document.getElementById("tableFilter").value;
searchTable(opts, text);
$('.spotRow').first().click();
});
In my index.html file, there is a drop-down <select id="activityFilter">
, and I'm trying to call searchTable
whenever the user selects a new item on this drop-down. However, it seems like the .on('click')
is never triggered in Chrome or Safari. However, it's working fine in Firefox and IE. Any suggestions?