I am missing out something here. I am trying to get the image during execution and display in pophover. This pophover is on table row.
The basic flow is, user will hover on one row so this will show a popover on right holding the product image along with some description.
I was able to track the image but while returning the whole image tag is appending as string. Therefore, the code is parsed as string and displayed as it is.
How can I fix this?
$('body').popover({
placement:"right",
trigger:"hover",
selector:'tr[id=popover]',
content:function(){
return '<img src = "' + $(this).children("td").children("img")[0].currentSrc + '" width="200" height="200">'
}
});
I am thinking if I can convert the return part to normal image tag then that can solve this issue.
Hope this screenshots helps.