so I currently wanted to bind two same event handlers(click), that are in different files, to one button element in my html but the second event handler isnt printing any of my debug statements to the console.
HTML:
<form>
<input type="button" value="Find it!" id="submit-button">
</form>
foobar.js:(this successfully triggers my google maps)
$("#submit-button").on("click", function(){
google.maps.event.trigger(map,'resize');
});
utility.js: (this event handler doesnt do anything):
$("#submit-button").on("click", function(){
console.log($('#termText').val());
});
I've read from other posts that JQuery should let you bind two event handlers to the same element. But strangely it isnt printing anything for my second click (in utility.js)