I want to use a drag to select feature, but rather than select a square area on screen, and select anything within that square, I want to select any element between my initial choice and the one I release the click on.
This is best explained visually. I do not want to do this:

Instead I want to do this:

If your boxes are within a list structure (ul or ol) you could detect the first and last boxes that the mouse has been dragged over and iterate through the collection using their identifiers as first and last indices to highlight as necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With