I want to get a "p" element which is inside a "td". How can I get it? My code is:
<td id="mytd">
<p> aaaa </p>
<p> bbbbb </p>
<p id="myp"> cccc </p>
</td>
I can get the td using. document.getElementById("mytd")
, but I don't know how to get the p with id="myp"
.
Thanks is advance