jquery - Swipe to select checkboxes in a web browser -


Sometimes our form contains several checkboxes in the table column. The user has to go through them and have to check one of them (but not all of them).

Often I think it would be nice if you can simply drag into the click and check box, with a swipe you want.

I have not applied it before, does anyone have any opinion on the applicability of something like this?

Has anyone seen jquery plugin that can enable it?

Here is my answer, which gives credit to trufa and tets to get the ball rolling: / P>

Here's a plugin for:

  $ .fn.swipeable = function () {var mousedownOn = {id: '', checkState: false}; $ (Document) .mouseup (function () {mousedownOn.id = '';}); $ (This). Filter (': checkbox'). MouseDowndown (function () {var $ this = $ (this); mousedownOn.id = $ this.attr ('id'); mouseDownOn.checkstate = $ this.prop ('check'); $ the.prop ('check ',! $ This.prop (' check ')); $ this.change ();}) .mouseenter (function () {var $ this = $ (this); if (muesdownun.id! =' & Amp; ; MouseDown.Id! = $ This.attr ('id')) {$ this.prop ('checked', mousudadownonchechestate); $ this.change ();}}) Click (function (e) {e.preventDefault (); return false;}); };    

Comments