jquery, if class in html parent class get active

Buddelia

New Member
I have tryed, but I did not get result.I just cerate my idea hereHtml\[code\]<html> <div> <div class="spinner"> </div> </div></html>\[/code\]Jquery\[code\]if (".spinner"){this.parent.addClass()}else {this.parent. removeClass() }\[/code\]What i want, if spinner class added inside the html code, the spinner parent class get add some css styling. If spinner class is removed from html, the spinner parent class have get out from that what we have added. How may i do this?Thanks for you advise.
 
Back
Top