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
1 Answer
Reset to default 0It looks like your jQuery selector is incorrect.
Try <script>$(".hidetab").css("display", "none");</script>
本文标签: cssWhy can39t blocks be hidden with jQuery
版权声明:本文标题:css - Why can't blocks be hidden with jQuery? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742380947a2464077.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论