I have a selection box in which the settings have the name of the policy. I need to display the policy description in the tooltip. I tried the tipr plugin, where the data hint option is used for this. It works fine for div, span, etc., but not for the select box option. I also tried the usual method that I attached to the specified link. This only works when the drop-down list is open by default.
<div>
<h4>Default behaviours</h4>
<select>
<option title=""></option>
<option title="1">1</option>
<option title="2">2</option>
<option title="3">3</option>
<option title="4">4</option>
</select>
<select multiple>
<option title=""></option>
<option title="1">1</option>
<option title="2">2</option>
<option title="3">3</option>
<option title="4">4</option>
</select>
</div>
<div>
<h4 class='uitip' title='Tests with jQuery UI Tooltips applied'>jQuery UI tooltips</h4>
<select class='uitip' title='has tooltips'>
<option title=""></option>
<option title="1">1</option>
<option title="2">2</option>
<option title="3">3</option>
<option title="4">4</option>
</select>
<select multiple class='uitip' title='has tooltips'>
<option title=""></option>
<option title="1">1</option>
<option title="2">2</option>
<option title="3">3</option>
<option title="4">4</option>
</select>
</div>
http://jsfiddle.net/slolife/Dp4te/
Any suggestions please?
source
share