all I have static check boxes in which I want to capture the selected seat numbers into an array. Following is the code

```
<ul className="st_eco_second_row">
                    <li> <span>Pay Rs.790.00</span>
                    <input type="checkbox" id="c8" name="cb" />
                    <label htmlFor="c8" />
                    </li>
                    <li className="seat_disable">
                    <input type="checkbox" id="c9" name="cb" />
                    <label htmlFor="c9" />
                    </li>
                    <li className="seat_disable">
                    <input type="checkbox" id="c10" name="cb" />
                    <label htmlFor="c10" />
                    </li>
    </ul>

```

[![seats](https://i.stack.imgur.com/XVc5R.png)](https://i.stack.imgur.com/XVc5R.png)

```
const handleOnChange = (e) => {
        let isChecked = e.target.checked;
        seats.push(e.target.id)
        if(isChecked){
            alert(seats);
        }
    console.log(seats)
}

```