1The correct way to do this is to use show and hide:
2
3$('#id').hide();
4$('#id').show();
5
6An alternate way is to use the jQuery css method:
7
8$("#id").css("display", "none");
9$("#id").css("display", "block");
1// The correct way to do this is to use show and hide:
2<div id="check">
3 <h3> Hello we check hide / show by jquery </h3>
4</div>
5
6//Syntex
7$('#yourid').hide();
8$('#yourid').show();
9
10// Example
11$('#check').hide();
12$('#check').show();
13
14// Alternate way is to use the jQuery by css method:
15
16//Syntex
17$("#yourid").css("display", "none");
18$("#yourid").css("display", "block");
19
20//Example
21$("#clear").css("display", "none");
22$("#clear").css("display", "block");