I want to hide parent div when a child div is clicked.I have appended the div when \"add more\" button is clicked.In short when \"X\" in div is clicked its parent div should
you should use deligates for dynamically created items
$(document).on("click",".delete" function () { $(this).parent().hide(); });