title: How to crop a string which is exceeding the element length?
body: <p>In my html page I have tooltip. Some strings are not fitting correctly because of their length in the Tooltip image. But, I'mm not allowed to crop the string from server side.</p>
  
  <p>I want to make the ToolTip to show first 8-12 chars and followed by dots.</p>
  
  <p>Is there any inbuilt function available for it in javascript or jquery.</p>
  
  <p>Thanks!</p>