Working with Jquery. How to change css class of an element in same root
Posted
by Shantanu Gupta
on Stack Overflow
See other posts from Stack Overflow
or by Shantanu Gupta
Published on 2010-04-07T20:15:46Z
Indexed on
2010/04/07
20:23 UTC
Read the original article
Hit count: 184
jquery-validate
|jQuery
I want to change css class of an element on certain event in jquery. eg.
focusin: function()
{
if(this.val()=="First Name")
$(this).find("span ").css
}
$(this).find("span which contains _set").class= mycssclass here I want to change the CSS class of span element whose id contains "_set" as a part of substring in class name and also want to change the text i.e. InnerHtml property of javascript of this span element
© Stack Overflow or respective owner