jquery - Remove CSS atribute from body::after -
this question has answer here:
i'm trying remove background-image attribute jquery had no success until now. '::after' don't let me remove-it. how can that?
body::after { background-image: url(../images/16_sm.jpg); }
try this,
html:
<body class='test'>
css:
.test::after{ background-image: url(../images/16_sm.jpg); }
js:
$('body').removeclass('test');
Comments
Post a Comment