admin管理员组

文章数量:1335585

This seems to be a trivial CSS question and should be asked on SO, but I think there are many subtleties in here that it's better to ask in here.

I add a CSS class to a block and use jQuery to hide it. It's simple, but it doesn't work. How do I debug this?

<script>$("hidetab").css("display", "none");</script>

This seems to be a trivial CSS question and should be asked on SO, but I think there are many subtleties in here that it's better to ask in here.

I add a CSS class to a block and use jQuery to hide it. It's simple, but it doesn't work. How do I debug this?

<script>$("hidetab").css("display", "none");</script>

Share Improve this question edited May 31, 2020 at 8:46 Ooker asked May 30, 2020 at 19:30 OokerOoker 3324 silver badges23 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It looks like your jQuery selector is incorrect.

Try <script>$(".hidetab").css("display", "none");</script>

本文标签: cssWhy can39t blocks be hidden with jQuery