I don’t know if I’m using the .selectable() API of jQuery UI entirely wrong. The expected result of this script is to simply get some alerts during the selecting of the black box (div):
I’ve had nothing but trouble with creating my own selectables() so I feel I must have missed something very basic about that particular function.
Note that in the documentation, you call
.selectable()on an element, and then the elements inside that become selectable. You want to add some things inside of your#selectablediv.http://jsfiddle.net/jMDVm/40/