KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using .on() function with this syntax: $(".schemaTab").on("click", ".schema", function () {}) instead of .live() because I am adding .schema divs dynamically. Those divs have this code: <div class="schema" id="SCH_16"> <img src="Img/btnRemove.png" class="ikona SCH_Remove" alt="Smazat" title="Smazat"> </div> But I need to exclude the img from click event of its parent div, so any idea how to do it? I tried: $(".schemaTab").not(".SCH_Remove").on("click", ".schema", function () {}) ...but it didn't work and I don't know how to add the .not() inside the .on() code
Tags (comma-separated)
Save Edits
Cancel