I have multiple checkboxes, and I want to click on one and hold shiftkey and click in another and select all checkbox within that range.
But if I hold shiftkey again and click on another checkbox the range change selecting the new ones if the range is bigger or deselecting if the range is smaller.
And if i click in one and dont press shiftkey when i click another one holding shiftkey my range will select and deselect using this as reference now.
Just like in gmail does.
I searched some answers but none of then does that exactly. They only set one checkbox for start and another to end. After that you have to deselect one per one to do that again. Or start and end in checkboxes that didnt participate from the first selection.
Anyone has some ideia how can i do that using javascript / jquery?