$.widget is not a function $.widget is not a function jquery jquery

$.widget is not a function


Place your widget.js after core.js, but before any other jquery that calls the widget.js file. (Example: draggable.js) Precedence (order) matters in what javascript/jquery can 'see'. Always position helper code before the code that uses the helper code.


Maybe placing the jquery.ui.widget.js as second after jquery.ui.core.js.


May be include Jquery Widget first, then Draggable?I guess that will solve the problem.....