my check-boxes look like

```
<input type="checkbox" id="checkbox_1" name="artist" value="Yes">
<input type="checkbox" id="checkbox_2" name="song" value="Yes">

```

and my code is

```
$(document).ready( function() {
    $('#checkbox_1').click( function() {
        $('#checkbox_2').each( function() {
            this.checked = !this.checked;
        });
        $("#submit").click();
    });
});

```

problem is when i check checkbox\_1 it doesnt stay checked (it stays deselected).. after `$("#submit").click()`;

hope you get the ideea

ok ok ok ..

the desired effect is:

Step1: both checkboxes are cleared

Step2: if i select checkbox1 then both checkboxes are selected

Step2: if i deselect checkbox1 then both checkboxes are cleared again

get it ?