I am new to jQuery and have been trying out the ToolTip Widget.
When the tooltip is displayed, an extra div is also displayed under the content with the same text as the tooltip being displayed.
This is undesired and I'm not sure how to get rid of it.
Please see: jsFiddle link for Trying jQuery ToolTip for a code example of what I'm having problems with.
Here is the code that I posted on jsFiddle:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>tooltip demo</title>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<style type="text/css">
.ui-tooltip
{
padding: 8px;
position: absolute;
z-index: 9999;
max-width: 300px;
-webkit-box-shadow: 0 0 5px #aaa;
box-shadow: 0 0 5px #aaa;
background: black;
color: White;
}
body .ui-tooltip
{
border-width: 2px;
}
</style>
</head>
<body>
<p>
<a href="#" title="Anchor description">Anchor text</a>
<input title="Input help">
</p>
<script type="text/javascript">
$(document).tooltip();
</script>
</body>
</html>