im trying to use jquery in order to make a button remove its parent div.
my markup:
Use a delegated handler (on) with the class as the selector so that any new buttons that get added later will still work.
$('body').on('click', '.button_remove_web_store', function() { $(this).parents("div:first").remove(); });