tags:

views:

611

answers:

2

hi....does anyone know a detailed and effective Jquery UI 1.7 tutorial out there? i just can't do it with the demo page alone.

i can't do the drag and drop.. with just doing the ('div#item').draggable();

thanks

+4  A: 

i like this one:

http://www.learningjquery.com/2008/07/introduction-to-jquery-ui

also, try

$('div#item').draggable():
W_P
i forgot the dollar sign in me question.:D...sorry. thanks anyway.
bgreen1989
i've read this. thanks
bgreen1989
+2  A: 

To use jQuery draggable, you need to :

  1. Include jquery.js, jquery.ui.core.js and jquery.draggable in your page
  2. Declare a <div id="item">Some content</div>
  3. Set a width and height to your div in your css : #item { width: 100px; height: 100px; }
  4. Call the jQuery draggable() extension : $('div#item').draggable();

Of course, 2 and 3 can be done together:

<div id="item" style="width: 100px; height: 100px;">Some content</div>
ybo