Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
**i need to add class name to an attribute**
for example  <li tab="tab1"> and i want to add class to to tab1
like mentioned in the below line
$(attribute ).addClass(class );
Posted
Comments
Samresh.ss 20-May-13 2:46am    
What exactly you wish to achieve. Please elaborate.

I think this is what you are asking for:

$('li[tab=tab1]').addClass(class);


But I'm not sure if your answer to yourself was that you found a solution, or that you are expanding on the question.
 
Share this answer
 
C#

[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900