user2083121
user2083121

Reputation: 21

Type Error $.widget is not function

I am using two plugins one is for Auto complete combo box and another for i Toggle button.Problem is that when I am accessing these two plugins at a time $ widget is not function error is displaying,but if I am giving these plugins individually no errors are displaying.Can you guys help me on this?

Upvotes: 2

Views: 22792

Answers (3)

Ambal Mani
Ambal Mani

Reputation: 315

Problem was in order of including scripts. At first I included file fith my widget and jquery-ui after. I changed order and the problem was resolved.

Upvotes: 1

Anonymous
Anonymous

Reputation: 31

You are including jQuery twice. This is the problem. Just avoid the second including:

<link rel="stylesheet" href="../../../jquery/jquery-ui.css" />
<script src="../../../jquery/jquery-1.8.2.js"></script>
<script src="../../../jquery/jquery-ui.js"></script>

<link href="../js/jquery.ibutton.css" rel="stylesheet" />
<script src="../js/jquery.ibutton.js"></script>

Upvotes: 3

Jeevi
Jeevi

Reputation: 1052

Try adding the latest versions of jQuery & jQuery UI.

http://code.jquery.com/jquery-1.9.1.js

http://code.jquery.com/ui/1.10.2/jquery-ui.js

Latest versions of jQuery will support latest version of jQuery UI, hence try taking the latest version of both jQuery and JQuery UI.

Upvotes: 1

Related Questions