I have created a custom notification window using the bootstrap alert class. The string has been trimmed for display, but I want the full message to appear in a popover when the user hovers over it. Below is the code snippet used for displaying notifications:
<div class="alert alert-success fade in">
<a style="padding: 0px" href="#" class="close" data-dismiss="alert" onclick="makeArchive(${notifications.notificationId})">×</a>
<strong style="cursor: pointer;" data-container="body" data-toggle="usersMobile" data-placement="right" data-trigger="hover" data-animation="true" onmouseover="showPopover(${notifications.notificationText})" data-content="${notifications.notificationText}" onclick="openModal(${notifications.notificationId})">
<c:out value="${notifications.trimmedString}"></c:out>
</strong>
When hovering over, the popOver function is called:
function popOver(notificationId){
$('[data-toggle="'+notificationId+'"]').popover("show");
}
Unfortunately, the popover is not appearing as expected.
Thank you.