Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: BVSelect is not defined #12

Open
TestO2015 opened this issue May 10, 2022 · 0 comments
Open

Uncaught ReferenceError: BVSelect is not defined #12

TestO2015 opened this issue May 10, 2022 · 0 comments

Comments

@TestO2015
Copy link

TestO2015 commented May 10, 2022

I have loaded the BVSelect JS and CSS files into my Javascript ES6 file and created a #selectbox element.

When I try to use new BVSelect() it fails with:

Uncaught ReferenceError: BVSelect is not defined

The browser shows that the .js and .css files are loaded succesfully and my code intellisense does pick up the BVSelect class.

Here's my javascript:

    $(`
    <select id="selectbox">
      <option data-separator="true"> Select Option </option>
      <option value="1"> Option 1 </option>
      <option value="2"> Option 2 </option>
      <option value="3" disabled> Option 3 </option>
      <option value="4"> Option 4 </option>
    </select>`).appendTo(this.$contentDiv);

    var demo = new BVSelect('#selectbox'); 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant