You can either disable the draggable:
$("#theImgId").draggable("disable");
or destroy it:
$("#theImgId").draggable("destroy");
- Richard
On Sun, Apr 12, 2009 at 5:02 AM, [email protected] <[email protected]>wrote:
>
> i have created some images draggable(dynamically by reading from a
> directory and giving them dynamic ids).i have applied many options on
> those such as invert the picture,rotate it etc.
> now,i want to CROP those draggable images.to do so,i have to cancel
> the dragable option applied before.how can i stop this draggable
> option in jquery??(i'm novice in jquery)
> several images r in a div and each image has the class "ui-widget-
> content",not the div.
> i tried to change the class name of those images.by changing their
> class in DOM,didnt stop them from dragging.
>
> <img class="ui-widget-content" onClick="saveId('<? echo $image[0]; ?
> >');" src="drag-drop_files/<? echo $image[0]; ?>" name="<? echo $image
> [0]; ?>" width="110" height="110" id="<? echo $img_name_extension[0]; ?
> >" style="position:absolute;left:<? echo $image[1]; ?>px;top:<? echo
> $image[2]; ?>px;">
>
> please,help.though its a small issue,very important and urgent to me.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---