Click here to Skip to main content
15,860,861 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi guys,

i have css style for whole page, which includes each n every control/element.

but, now i want to remove css style for checkbox, radio button n dropdowlist.

can anyone help me

thnx
Posted
Updated 20-May-14 5:21am
v2
Comments
Sergey Alexandrovich Kryukov 20-May-14 11:25am    
Remove where, when, on each event, or perhaps, forever? This is quite simple, but you should explain what you want to achieve.
—SA
abdul subhan mohammed 20-May-14 12:20pm    
i have css for table, means, i'm just writing d table tag without any class.

for each table it is applying css, but for one table i dodn't want to apply css,

can u plz let me know... thnx

1 solution

Personally I'd use jQuery:

C#
$("input:checkbox").each(function( index ) {
   $(this).removeAttr( 'style'); // or $(this).css("background-color","")
});


(and repeat with "input:radio" as the selector.)
 
Share this answer
 
Comments
abdul subhan mohammed 20-May-14 11:57am    
i have asp.net page, where i have <asp:CheckBox id="c" runat="server" />

i have to type, $("asp:Checkbox") or what... let me know

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