Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
103
rated 0 times [  110] [ 7]  / answers: 1 / hits: 39415  / 11 Years ago, wed, september 25, 2013, 12:00:00

I have assigned an element a class which has following CSS:


.cls {
display:none !important;
}

When I try to show this element with jQuery


$(".cls").show();

It does not work.


How can I show this element?


More From » jquery

 Answers
8
$('.cls').attr('style','display:block !important');


DEMO


[#75449] Tuesday, September 24, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brittanye

Total Points: 263
Total Questions: 94
Total Answers: 115

Location: Burkina Faso
Member since Thu, Dec 23, 2021
2 Years ago
;