Problems with jQuery .not() and the draggable ui

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-04-29T12:03:16Z Indexed on 2010/04/29 12:07 UTC
Read the original article Hit count: 233

Filed under:
|

Okay, when something is draggable, it is given the class .ui-draggable And when something is disabled from being draggable .ui-draggable-disabled

I want to select only items that are draggable.

I'm using the following selector, but it doesn't seem to work. My disabled draggable items are still doing something on hover. Any ideas why?

$('.ui-draggable').not('.ui-draggable-disabled').hover(function() {
// rest of code

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui