Draggable element selections (like WhenIsGood)
whenisgood.net let's you drag over time slots to select/deselect multiple at once. I really like that UI so I made a little knockoff jQuery plugin to pull it off. Not exactly high-efficiency code, but I was going for clarity.
$(".draggable").dragHighlight('selected');
Demo (JSFiddle)
Source (Gist)

Written by Charles Julian Knight
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#