Avatar of Rohit Bajaj
Rohit Bajaj
Flag for India

asked on 

Using jquery UI with npm

HI,
I installed jquery-ui using the command
npm install jquery-ui --save
And included it into my javascript file like :
var $ = require("jquery"), require("jquery-ui");
But on calling $("#dialog").dialog({ autoOpen: false });
I am getting the following error on console :
TypeError: $(...).dialog is not a function
$("#dialog").dialog({ autoOpen: false });
new.js (line 56, col 6)

what could be the reason for this ?
How to use jquery-ui ?
I am using webpack in my application to bundle modules.

Thanks
JavaScriptjQueryWeb Development

Avatar of undefined
Last Comment
Marco Gasi

8/22/2022 - Mon