javascript set input to checked code example
Example 1: checkbox value
<input type="checkbox" name="vehicle1" value="Bike">
The checkbox value is 'Bike'.
Example 2: html checkbox status
app.innerHTML = '<h1>Hello, world!</h1>';
<input type="checkbox" name="vehicle1" value="Bike">
The checkbox value is 'Bike'.
app.innerHTML = '<h1>Hello, world!</h1>';