Answer the question
In order to leave comments, you need to log in
Chrome extension doesn't read $(),click, how to fix?
On the page I add:
<a href="#" id="savetradeBtn" class="btn btn-primary input-group-addon">Save Trade URL</a>
$('#savetradeBtn').click(function() {
console.log("321");
savetrade();
});
Answer the question
In order to leave comments, you need to log in
is jquery included?
you have #savetradeBtn in jquery and the button is called #savetrade
Usually "doesn't work" has symptoms,
what does the error console give?
does your console.log("321"); or does it not reach?
where is the piece of code before the call and after the call? Maybe it does not reach here at all for some ifam?
Before and after the handler add console.log("start"); console.log("end");, it will be at least clear whether the code comes here or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question