I am looking to display a table when hovering over text, and I have implemented this basic jquery/CSS code:
<meta charset="utf-8" />
<title></title>
<link href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.10.2.js"></script><script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link href="/resources/demos/style.css" rel="stylesheet" />
<script>
$(function() {
$( document ).tooltip();
});
</script>
<style type="text/css">
label {
display: inline-block;
width: 5em;
}</style>
<p>
<a href="#" title="I want the below table to be hovered here">Table</a> to be hovered</p>
This is the HTML table that should appear on hover:
HTML:
<table border="4" bordercolor="black" cellpadding="15px" cellspacing="1" style="width: 800px;">
<tbody>
<tr>
<td>
<h1>
<b style="list-style-type: disc; margin-left: 25px; margin-right:5px">This is my table</b></h1>
<ul style="list-style-type: disc; margin-left: 40px; margin-right:5px">
<li>
<h1>
This is my first point</h1>
</li>
<li>
<h1>
This is my second point</h1>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
I have attempted replacing the placeholder text with the HTML table, but it's not functioning as expected. Any suggestions on how to properly call and display the table?