jquery - How to attach click event on a specific DIV which is nested much -
I have a child div that is a nested lot I want to be alerted when someone clicks on that div I want to show, but if someone clicks outside my specific nested diva, my click event will not be there.
My specific device
I try to solve it like this, but no luck was found
$ ('div'). Click (function (ev) {var class_name = $ (this) .attr ('class'); if (class_name = 'arrange_collection_today') {warning ('test ...');}});
So please guide me how to get everyone.
or Recommended
$ (". Arrange_collection_today") (function () {});
Comments
Post a Comment