Check if an element contains certain class

Another awesome feature of jQuery 1.4 that will be quite handy is 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. view plaincopy to clipboardprint? $(“input”).has(“.email”).addClass(“email_icon”); In the above code we will […]

Read More