shakacode / bootstrap-loader

Load Bootstrap styles and scripts in your Webpack bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue in loading popover

vaibhavmandlik opened this issue · comments

Hello,

I'm running into this issue since 3 days but couldn't find solution for this. I'm using popover exactly same as described in docs page. But it is giving an error:

Uncaught ReferenceError: $ is not defined

Where I'm going wrong.

This is my HTML:
<button type="button" class="btn btn-primary" data-toggle="popover" title="Link Copied" data-content="Send your referral link to your friends" data-placement="top" onclick="copy_link(document.getElementById('share_link').innerHTML)">Copy Link</button>

My JS:
$(function () { $('[data-toggle="popover"]').popover() })

I've included the popover.js in <head> section.
Please help me running out of this.