javascript - Tooltip not showing up in Safari 5.1.7 -
i have used title attribute show tool tip option in select shown in code below:
<select> <option title="hello 1"> hello 1 </option> <option title="hello 2"> hello 2 </option> <select> but tool tip works in chrome , firefox, doesn't work in safari 5.1.7 . can know how fix or work around issue. here demo
note: can't use mutiple="multiple" attribute on select
try this
$(document).ready(function () { $('select option').each(function () { $(this).attr({ 'title': $(this).html() }); }); }); see demo http://jsfiddle.net/vkwbr/1/
Comments
Post a Comment