Want to show tooltip with dynamic data on clicking to
Have tried many plugins, but didnt achieved my goal.
Here my code:
<script type="text/javascript">
$(document).ready(function () {
$("#tbl td").click(function () {
$.ajax({
type: "POST",
url: '@Url.Action("GetCellData")',
dataType: 'JSON',
data: {
time: $(this).parent().children().index($(this)),
name: $('td:first', $(this).parents('tr')).text(),
type: $('input[name="t"]:checked').val()
},
success: function (response) {
///
/// HERE I NEED TO SHOW TOOLTIP
///
}
});
});
});
I need to use ‘response’ in callback, to show it in tooltip, on muse click to cell.
Can you please reccomend me plugin, for my problem.
Something like this
and in your css create these rules
You can style the tooltip anyway you like of-course..
demo http://jsfiddle.net/gaby/fFDhB/1/