I am trying to get the textwidth of innerhtml in Javascript.
Tried clientwidth,$(p.width()) but still unable to get it.Can anyone please help. PFB the sample code
<div class="watermark">
<p>ABCDEFGH</p>
</div>
I am trying to get the textwidth of innerhtml in Javascript.
Tried clientwidth,$(p.width()) but still unable to get it.Can anyone please help. PFB the sample code
<div class="watermark">
<p>ABCDEFGH</p>
</div>