如何刪除隱藏的類?爲了展示色帶?如何使用jquery刪除類?
的Html
<div id="alwaysInStockRibbon" class="ribbon-wrapper-productpage hidden">
的CSS
.hidden {
display: none!important;
visibility: hidden!important;
我下面這些嘗試沒有成功。
jQuery的
$(".hidden").remove();
$(".hidden").removeClass();
https://api.jquery.com/remove/
https://api.jquery.com/removeClass/
輸入?
http://stackoverflow.com/questions/17118847/ remove-element-with-multiple-class-without-id – Oncodeeater
所有在您提供的DOC鏈接中都有... https://api.jquery.com/removeClass/我們無法爲您讀取 –