I need help with a jQuery code that will pull up/slide up an Html "p" tag when my page finishes loading.
This snippet of jQuery code seems to be working fine:
$(function () {
$('.graybgc').slideUp(0);
});
This is the HTML structure:
<p class="graybgc">
<span>A: </span>abcd.....
</p>
However, I noticed that when additional tags like ul are added, the code fails to function correctly and does not slide up the targeted HTML p tag. Here's an example:
<p class="graybgc">
<span>A: </span>
<ul >
<li>123</li>
<li>123</li>
</ul>
</p>