<div class="rcbScroll rcbWidth rcbNoWrap" style="height: 200px; width: 100%; overflow: auto"> </div>
This is my div. I want to hide the div using the class name. I am not able to do as class name as space in it. It is only one class.
Class names can not have spaces in them. So you have to think of it as 2 class names.
Eg: class="word1 word2"
Can be selected with the following:
var myVar = $('.word1.word2');
In your specific case, it becomes:
$('.rcbScroll.rcbWidth.rcbNoWrap').hide();
The spaces means multiple class names, you can use any of these classes to hide the div
.
Example:
$(".rcbScroll").hide()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With