You just needed to add the on()
method.
$('a[href^="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2"]').on("click", function(){
EJEJC_lc(this);
});
3
solved I want to add a certain onclick function with certain hrefs [duplicate]
You just needed to add the on()
method.
$('a[href^="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2"]').on("click", function(){
EJEJC_lc(this);
});
3
solved I want to add a certain onclick function with certain hrefs [duplicate]