javascript - onclick event jquery+angular trigger click event 3 times -


i using jquery + onsen ui uses angular. can't de element event click using

$(element).click(function(){}); 

then using way

  $(".list").on("click",".item-from-list",function(){ 

ok, works. problem is: list inside ons-carousel has 3 slides 3 different lists, same class want click.

when click in list item, triggers click event 3 times. should do?

thanks.

have tried looking @ event.stoppropagation()?

description: prevents event bubbling dom tree, preventing parent handlers being notified of event.

https://api.jquery.com/event.stoppropagation/


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -