You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to show tooltip on 'li' tags generated by multiple-select when item text is greater than width of dropdown (I am already truncating text when it is larger than width and showing "... ").
Here is my code:
var $li = $('#ddlBooks').siblings().find(".ms-drop li");
$.each($li, function (i, v) {
if (v.innerText.length > 27)
$(v).attr('title', v.innerText);
});
it does add title attribute in li tag when these lines of code execute but as soon as page completely renders there is no title attribute. Please help me with this.
The text was updated successfully, but these errors were encountered:
I want to show tooltip on 'li' tags generated by multiple-select when item text is greater than width of dropdown (I am already truncating text when it is larger than width and showing "... ").
Here is my code:$li = $ ('#ddlBooks').siblings().find(".ms-drop li");
var
$.each($li, function (i, v) {
if (v.innerText.length > 27)
$(v).attr('title', v.innerText);
});
it does add title attribute in li tag when these lines of code execute but as soon as page completely renders there is no title attribute. Please help me with this.
The text was updated successfully, but these errors were encountered: