// jQuery display, concealment methods
$ ( "# id") show (); // expressed Run the display:. Block,
$ ( "# the above mentioned id") hide (); // expressed Run the display:. none;
. $ ( "# the above mentioned id") Toggle (); // visible state of the switching element. If the element is visible, the hidden switch; if the element is hidden, invisible switched.
//添加样式的方法
$("#id").css('display','none');
$("#id").css('display','block');
或
$("#id")[0].style.display = 'none';
或
$("#demo").attr("style","display:none;");//隐藏div
$("#demo").attr("style","display:block;");//显示div
或//添加class类名
$("#select_contents").removeClass("hidden");
$("#select_contents").addClass("hidden");