hajjo 0 Junior Poster

I have table in html and each line has checkbox...
what I want to do..

I click on checkbox +shift button together in line 1... then click it on line 5.. it selects all booleancheckboxes from line 1 to line 5...

but if i click on the checkbox of line 1 without shift button..then click on line 5.. only line 1 and line 5 boolean checkboxes is selected..
anyone knows how I can add functionality like this?