I am using google map geochart and i have added tooltip when user will click on any state then it will show the tooltip with state info. I need to add a close button in tooltip.when user will click on tooltip then tooltip will close.I have added this code to hide tooltip it close the tooltip but when hover on map then it shows it again.
<a class="clslink" href="javascript:;" id="test'.$valArr[1].'" onclick="closetip(this);" >Close</a>
function closetip(a)
{
//alert($(a).attr('id'));
var cls = $(a).attr('id');
$("#"+cls).parent().parent().parent().hide();
}