I am using Javascript to handle a Bootstrap popover, but the Javascript inside the LinkButton (which is inside a repeater) doesn't fire. I think it has something to do with the way I setup the Javascript for the popover. I would appreciate some help!
Markup
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" id="ProjectCardButton" type="button" data-toggle="popover">
Project Dropdown (WIP)
</button>
<div class="ProfilePopupModal col-md-4 clearfix d-md-block" id="ProjectCard">
<div class="card mb-2">
<div class="card-body" style="width: 200px; padding-left: 0 !important;">
<div class="row">
<div class="col-lg">
<asp:Repeater ID="projectDropdown" runat="server">
<ItemTemplate>
<asp:LinkButton runat="server" Text="Link button" OnClientClick="selectProject() {alert('You pressed Me!');}; return false;" />
</br>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</div>
</div>
</div>
</div>
Javascript
var options = {
html: true,
placement: 'bottom',
content: function () {
return $('#ProjectCard').html();
}
}
$("#ProjectCardButton").popover(options);
CSS
.ProfilePopupModal {
visibility: hidden;
position: fixed;
overflow-x: hidden;
}