question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: $(...).material_select is not a function

See original GitHub issue

Uncaught TypeError: $(…).material_select is not a function

Recently I’ve tried Materialize with Vue2 and Meteor. However, I got a problem where i can’t initialize select

$('select').material_select()

this is my code

-HTML
        <div class="input-field">
            <select>
                <option value="test">Test</option>
            </select>
            <label for="">Materialize Select</label>
        </div>
-JS

export default {
   mounted(){
      $('select').material_select();
   }
}

thanks in advance!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
tahnikcommented, Apr 24, 2017

Any solution for this?

0reactions
vlagachecommented, Feb 3, 2021

I had the same problem with version 1.0.0

Solved with <script>M.AutoInit();</script> in the HTML code https://materializecss.com/auto-init.html Hopefully this will help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

materialSelect is not a function
Uncaught TypeError : $(...).materialSelect is not a function. I am using $('.mdb-select').materialSelect(); I Got working with html but when I put the same ......
Read more >
Materialize material_select is not a function error
Sidenav works just fine, yet material_select() is throwing an Uncaught TypeError. <script src="https://code.jquery.com/jquery-3.2.1.js"> ...
Read more >
I got $(...).material_select() is not a function
this is my setup <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Meteor Vue ...
Read more >
TypeError: $(...).select2 is not a function in jQuery
To solve the "$(...).select2 is not a function" jQuery error, make sure to load the jQuery library before loading the select2 library.
Read more >
uncaught typeerror: $(...).on is not a function - ...
uncaught typeerror : $(...).on is not a function. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On May 20,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found