javascript - Jquery on click event is not working on dynamically added Custom tags -


this question has answer here:

jquery on click event not working on dynamically added custom tags

my code

  $("[addtoship='yes']").on('click', function() {          alert('ship added')   }); 

href <a href="#" addtoship='yes' myval="10235">add more ship</a>

i trying using .on still it's not working

$(document/commonparentselector).on('click', "[addtoship='yes']", function () {     alert('ship added') }); 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -