How to check all previous checkbox on condition

#1

checkbox%20condition

i have these 4 checkboxes on a page. I want if i check check box number 3 checkbox 1 and checkbox 2 should be checked automaticcaly . how i do this ?

#2

@rapropos please help me to achieve this