How to remove CSS class from all Descendants at once using JQuery

Remove CSS class using JQUERY

Sometimes we required to remove class names for all decendents of the particular div or elements. Below code is useful for that. So many ways are there.

1. $("#mydiv a").removeClass("AnchorTag");

2. $("div.className a").removeClass("AnchorTag"); 

Please share your comments on this post.
Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar