How to remove the style effect with javascript or jquery?

advertisements

This question already has an answer here:

  • jQuery & CSS - Remove/Add display:none 12 answers

How to remove the style with jQuery or JavaScript in order to display the div element?

  <div style="display: none">display something </div>

If you know ,please share with me . Thanks

PS´╝ÜBefore ,I have tried with jquery.show(), but the effect is a big blank over there


Try like

$('div').css('display','block');

Better you give an class or id to the specific div and try like

Using Id :

$('#div_id').css('display','block');

Using Class :

$('.div_class').css('display','block');