.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How to add css class using jQuery?

Posted By: Jack Hard     Posted Date: October 15, 2012    Points:5   Category :ASP.Net
I have written this script to find control and then add css class to it

var abc = $(this).parent().parent().parent().attr('id');

It works fine. When I test variable in alert like


then it display correct id of the control. Now I want to add css class to this control. I tried this code but not working.



No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend