I have array of checkboxes like below,

```
<input type="checkbox" value="1" id="a_r_id[1]" name="a_r_id[1]">
<input type="checkbox" value="1" id="a_r_id[2]" name="a_r_id[2]">
<input type="checkbox" value="1" id="a_r_id[3]" name="a_r_id[3]">
<input type="checkbox" value="1" id="a_r_id[4]" name="a_r_id[4]">

```

in my page... and i want to submit only the checked one via JavaScript (jQuery AJAX)... how can i do that ? 

EDITED :

Actually, i want to get all array keys on the checked checkbox so that i can post it via ajax. Something like "1,4" as a string.