My code seems to be having an issue where the title does not display completely when hovering over it. For example, if the title is set as "The Value", only "The" is shown and not "The Value". Can anyone help me identify the mistake? Thank you in advance.
var str1 = "The Value";
var str;
if (str1.length > 10) {
str = str1.substring(0, 10);
str = str + "...";
}
<li><div id=' + itemId + ' class="append_content" title=' + str1 + '><div class="append_pic"><img style="width:54px; height:54px;" src='+icon+'></div><div class="append_text">' + str + '</div></li>