[Solved] I want to add a certain onclick function with certain hrefs [duplicate]

[ad_1]

You just needed to add the on() method.

http://api.jquery.com/on/

$('a[href^="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2"]').on("click", function(){ 
  EJEJC_lc(this);
});

3

[ad_2]

solved I want to add a certain onclick function with certain hrefs [duplicate]