Chron
1 month ago
347
9
General

How to only load needed js file?

Posted 1 month ago by Chron

I'm using Input mask v3.3.11.

Here is the github: https://github.com/RobinHerbots/Inputmask

I already have this:

//bootstrap.js
import inputmask from "inputmask/dist/min/jquery.inputmask.bundle.min.js";

I use it like this:

$("element").inputmask({
	//....
});

But I'm getting TypeError: $(...).inputmask is not a function error.

Please sign in or create an account to participate in this conversation.