Hide parent div on click using jQuery
问题 So I'm trying to write a super simple script that will allow a user to throw any link or button with the class .close inside of a div, and when that .close link is clicked, it automatically closes the parent container. Here is what I'm currently trying to work with: JSFiddle The code that I am currently trying to use is: HTML <div class="well notice bg-green"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <p>This is a notice that is green.</p> </div>