Skip to main content
2 of 3
added 113 characters in body
Mayank K. Swami
  • 57.3k
  • 23
  • 130
  • 148

you need to use !important in class .Check this awesome answer to see how !important works

 /*html*/ <div class="first" style="display:none;">sdfirst</div> <div class="second" >second</div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ /*jquery*/ $(".second").mouseover(function() { $(".first").addClass("ss"); })​ /*css*/ ​.ss{display:block !important;}​ 

Specifics on CSS Specificity

Mayank K. Swami
  • 57.3k
  • 23
  • 130
  • 148