I am trying to close tooltip using jQuery hide.
On the tooltip, I put a image with onclick event that calls javascript function to hide the tooltip
<img id=... src=... onclick="hideTooltip('formId:tableId:rowIndex:tooltipId')" />
Here is the javascript function
function hideTooltip(elem) {
  var pound = '#';
  jQuery(pound.concat(elem.replace(/:/g, '\\\\:'))).hide('slow');
}
The js function is called as if I put a alert, it will pop up but hide() doesn't work. When I inspect the elements the id of the tooltip is form:table:rowIndex#:tooltipId. 
I tried to use widgetVar and it will hide the tooltip but the tooltip shows data based on just the last row and not of each row.
<img ... onclick="PF('widgetVarID').hide()" />
 
     
    