0

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>
geekops
  • 505
  • 8
  • 21

1 Answers1

0

Try:

$('.watermark p').width();
Sherman
  • 853
  • 5
  • 16