I have a structure that looks like this..
<div class="infobubble">
<a href="#" class="btn-closebubble"></a>
<p>
PLACE CONTENT HERE
</p>
</div>
How do I use jquery to target the in
tags?
I tried this but did not work.
$("infobubble p").html('My Text');
Your code is wrong, you need to specify that you are looking for a class, like so
Your code
$("infobubble p")would be looking for a tag element namedinfobubblewhich does not exist