I have a div with text inside it Eg
<div id="d1" style="width:50px;height:20px;background-color:tomato;">
HelloHelloHelloHelloHelloHelloHelloHello
</div>
How can i get the number of visible characters upto certain width(width of div) using jquery?