display none and block jquery code example
Example 1: jquery display none
The correct way to do this is to use show and hide:
$('#id').hide();
$('#id').show();
An alternate way is to use the jQuery css method:
$("#id").css("display", "none");
$("#id").css("display", "block");
Example 2: display none in jquery
<div id="check">
<h3> Hello we check hide / show by jquery </h3>
</div>
$('#yourid').hide();
$('#yourid').show();
$('#check').hide();
$('#check').show();
$("#yourid").css("display", "none");
$("#yourid").css("display", "block");
$("#clear").css("display", "none");
$("#clear").css("display", "block");