views:

14

answers:

1

Hello friends

I have included jquery and jqueryui from google api as follows

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"&gt;&lt;/script&gt;
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"&gt;&lt;/script&gt;

I want to use jquery ui sortable facilities. Do I need to include any more libraries to do so ?

I tried

<script type="text/javascript">
    $(function() {
        $("#sortable").sortable();
    });
    </script>

but didnt worked for me, please help

A: 

Reverse the script references.

First you need jQuery (The Core), then jQuery UI.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3 jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"&gt;&lt;/script&gt;
Marko
Thanks a lot:) ;
Thomas John