jQuery in Action
Introduction to the UI Plugin
305
Let's dig into this lab and start some exercises!
Exercise 1--For the first exercise, we'll create a simple draggable with all
options defaulted. Bring up the
UI
Draggables Lab page in your browser, and
leave all option controls as they are upon load; they are set so that their initial
conditions specify no options.
conditions specify no options.
Try to click and drag the Test Subject dragon image. Nothing much happens
unless you're using
OS X
, in which case you will see something happen.
OS X
allows you to drag images off of web pages to copy them to your local system via
Figure 9.10 The UI Draggables Lab page allows us to play around with most of the options available
for draggable items.
for draggable items.