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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -