I have a weird problem with jquery hint. I am using the code below
<head> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script> <script> $(function() { $(".tooltip").tooltip({ position: { my: "left-30 center+15", at: "right center" } },{ tooltipClass: "custom-tooltip-styling" }); }); </script> </head> <body> <a href="link" class="addon_link tooltip" title="test1">test1</a> <a href="link" class="addon_link tooltip" title="test2">test2</a> <a href="link" class="addon_link tooltip" title="test3">test3</a> <a href="link" class="addon_link tooltip" title="test4">test4</a> </body> </html>
The tooltip works correctly, but after the Title show adds them to the page and places them in a div like this,
<div role="log" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"><div>test1</div></div> <div role="log" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"><div>test2</div></div>
My page is as follows
<head> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script> <script> $(function() { $(".tooltip").tooltip({ position: { my: "left-30 center+15", at: "right center" } },{ tooltipClass: "custom-tooltip-styling" }); }); </script> </head> <body> <a href="link" class="addon_link tooltip" title="test1">test1</a> <a href="link" class="addon_link tooltip" title="test2">test2</a> <a href="link" class="addon_link tooltip" title="test3">test3</a> <a href="link" class="addon_link tooltip" title="test4">test4</a> </body> </html> <div role="log" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"><div>test1</div></div> <div role="log" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"><div>test2</div></div>
How to hide the hint after the show?
http://jsfiddle.net/V9R2M/2/
source share