JS
$(function(){
$("select").multiselect();
$( document ).tooltip();
$( document ).tooltip( "option", "position", { my: "left+20 center", at: "right center" } );
});
HTML
<select multiple="multiple" size="5">
<optgroup label="England">
<option title="example 1" value="London">London</option>
<option title="example 2" value="Leeds">Leeds</option>
<option title="example 3" value="option3">Manchaster</option>
</optgroup>
<optgroup label="USA">
<option title="example 4" value="option4">New York</option>
<option title="example 5" value="option5">Chicago</option>
</optgroup>
</select>
I'm using Eric Hynds' multiselect widget as well as the jQuery UI tooltip widget with jQuery 1.9.1.
I want tooltips to appear when the user hovers over each item in the multiselect widget. To do this, I defined a 'title' attribute for each option within the widget. This works just fine, except that the multiselect widget also has it's own tooltips that appear which contain each option value. Therefore, I get two tooltips for each option.
I would like to either disable the multiselect's inherent tooltips, or make my own tooltips work with another attribute besides 'title' (So far I can't find any other attributes that will work inside an tag). Or, any other ideas?