see I have done this:
I want to find the length of the string which is inside the div tag .
I want to find the length of the string which is inside the div tag .
Code:
<script> function show_hide() { var l = getElementById("text").length; alert(l); } </script> <div id="text"><p>I am the text which you want my length</p></div>
Comment