Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to show tooltip on items in dropdown #239

Closed
sanisagohar opened this issue Aug 28, 2015 · 1 comment
Closed

Unable to show tooltip on items in dropdown #239

sanisagohar opened this issue Aug 28, 2015 · 1 comment

Comments

@sanisagohar
Copy link

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.

@wenzhixin
Copy link
Owner

Here is an example: http://jsfiddle.net/wenyi/knbdm5hu/5/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants