Created
April 13, 2012 23:13
-
-
Save avireni/2380726 to your computer and use it in GitHub Desktop.
Check If An Element contains a certain class or element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //jQuery 1.4.* includes support for the has method. This method will find | |
| //if a an element contains a certain other element class or whatever it is | |
| //you are looking for and do anything you want to them. | |
| $("input").has(".email").addClass("email_icon"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment