mnaputi
mnaputi

Reputation: 51

jquery increment variable after drag & drop

I am trying to increment a variable by one after each draggable element is dropped onto a droppable div. Once the desired value is reached, some css will change. I managed to get all of the drag and drop functionality by some miracle, however, this increment thing has got me mired in the muck. Can anyone see what I am missing here?

Here is the my fiddle: http://jsfiddle.net/KzDLA/10/

Upvotes: 1

Views: 816

Answers (1)

Patrick
Patrick

Reputation: 3498

Got it working by rearranging your picDrop function.

http://jsfiddle.net/patrickmarabeas/KzDLA/11/

Upvotes: 1

Related Questions