I have these 2 elements p.rdmore and ul.post-ul-more with the property display = none in css.
However, on some specific pages, I want to remove these options. I did some research and came up with this code
<script type='text/javascript'>
$('p.rdmore').removeClass('none').addClass('inherit');
$('ul.post-ul-more').removeClass('none').addClass('inherit');
</script>
I tried an if statement for javascript as well but it didn't work. Am I missing anything here?
noneandinheritclasses on these elements?