javascript - What is another JQuery function that does something similar to is()? -


$ target.is ("a.foo") Which is the account ().

What if I want to see (what is)? What work do I use?

I tried the warning ($ (target.is ()) to see if I had to find out what the goal was, but I got the value wrong.

You can try:

can be the target asset An event that is registered for the event or registered for its offspring, it is often useful to compare the goal for the event, to determine whether the event Tuna is being handled due to bubbling. This custom event is very useful in the delegation, bubble.

  $ ('a'). Click (function (event) { Var $ target = $ (event.target); if ($ target.is ("a .foo")) {...}})    

Comments