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.

You can. Click (function (eve) {if ($ (this) .hasClass ('arrange_collection_today')) {Warning ('test ...'}}}}); Click

or Recommended

  $ (". Arrange_collection_today") (function () {});  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Algorithm negotiation fail SSH in Jenkins -

java - Messages from .properties file do not display UTF-8 characters -