1

I want to hide all class row which is used from bootstrap using jquery function $('#divid').css("visibility", 'hidden'); but nothing happens. Any ideas?

Devmasta
  • 513
  • 2
  • 14
  • 38
  • possible duplicates of - 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/questions/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 – Himanshu Aggarwal Oct 25 '16 at 10:49
  • Possible duplicate of [jQuery - get all divs inside a div with class ".container"](http://stackoverflow.com/questions/5977699/jquery-get-all-divs-inside-a-div-with-class-container) – Himanshu Aggarwal Oct 25 '16 at 10:52

3 Answers3

3

Hide by class:

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

Hide by id:

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

Hide by tag:

 $('div').hide(); // all div tag will be hide
AHJeebon
  • 1,218
  • 1
  • 12
  • 17
0

I want to hide all class

so use class, not id ))

$('.divclass').css("visibility", 'hidden');
Pasha K
  • 357
  • 1
  • 7
0

You can Remove rows classes

$("#divid .row").removeClass("row");
Sumit patel
  • 3,807
  • 9
  • 34
  • 61
Ammar Mousa
  • 48
  • 10