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.
I want to make the ToolTip to show first 8-12 chars and followed by dots.
Is there any inbuilt function available for it in javascript or jquery.
Thanks!
You can use
string.substring(from, to): http://www.w3schools.com/jsref/jsref_substring.aspThen just append
"..."