jquery - .stopPropagation() and bubbling - can someone explain it to me? -


I have a stupid question, can someone explain to me, why still on .auter begins? Even when I have set the .stopPropagation () . I think, I do not understand the issue correctly when I .inner Click on the event, then .auter

    

Javascript:

  $ ('external'). ('Click', function (e) {e.stopPropagation (); $ (Toggleclass ('hidden');})   

You need to use:

  $ ('internal'). ('Click', function (E) {e.stopPropagation ();}) preventing the   event bubble since $ ('Toggleclass (' hidden ';))   

Doom Tree Down Not



Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -