karse23 karse23 - 1 year ago 94
jQuery Question

Check enabled/disabled status of a draggable element in jQueryUI

I have some elements which are draggable and I'm changing their status like this:

// and:

How can I check the current state of a draggable object, ie. if it's enabled or disabled in jQueryUI?

Answer Source

You can check if the draggable element is disabled like this:

var isDisabled = $(obj).draggable('option', 'disabled');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download