JavaScript Checkboxes - click & drag to highlight 'em all!
With jQuery, it becomes possible for people to make much simpler and more intuitive user interactions with controls on the Web. I'm sure many people have had the problem where they want to select, say, half of the checkboxes on a page, or maybe all the ones within just a particular value or range. It's time-consuming and error-prone to click them all, and the "Select All" button just won't buy much time savings. Thus far, I haven't really seen a good implementation that solves this problem, so I rolled my own. Please use it in your own designs! This is something that needs to be shared freely for the good of humanity. :-P You can do this completely in JavaScript with dynamically-generated checkboxes or even ones you have pre-existing. Here goes: <script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> v...