2016-10-25 5 views
1

jquery関数$('#divid').css("visibility", 'hidden');を使用してブートストラップから使用されるすべてのクラス行を非表示にしたいが、何も起こりません。何か案は?クラスによってhtmlの行を非表示にする方法

+0

重複の可能性と削除することができます - のhttp://のstackoverflowを。 com/questions/11410415/hide-table-rows-that-dont-have-a-certain-class http://stackoverflow.com/questions/10612379/jquery-hide-all-elements-with-certain-class- except-one http://stackoverflow.com/quエスポー/ 1569457/hide-all-table-rows-that-lack-a-particular-class http://stackoverflow.com/questions/4474429/jquery-to-hide-rows-that-do-not-have- a-certain-class –

+0

[jQueryの可能な複製 - クラス ".container"を持つdiv内のすべてのdivを取得](http://stackoverflow.com/questions/5977699/jquery-get-all-divs-inside-a- div-with-class-container) –

答えて

4

を隠す:IDによって

$('.divclass').hide(); 

を隠す:タグによって

$('#divid').hide(); 

を隠す:

$('div').hide(); // all div tag will be hide 
+1

詳細情報:http://api.jquery.com/hide/ – Drefetr

0

私はそう)クラスではなく、IDを使用するすべてのクラスに

を非表示にする)

$('.divclass').css("visibility", 'hidden'); 
0

あなたは行クラスの

$("#divid .row").removeClass("row"); 
関連する問題