Jump to content

checkbox result to be output to another checkbox


dylan42

Recommended Posts

<!DOCTYPE html><html><body>

<form action="demo_form.asp" method="get"> <input type="checkbox" name="vehicle" value="Bike"> I have a bike<br> <input type="checkbox" name="vehicle" value="Car" checked="checked"> I have a car<br> <input type="submit" value="Submit"></form>

</body></html>

Link to comment
Share on other sites

I have a sample HTML that I have copied from the website - I want to output the result of these two checkboxes to two more checkboxes that reflect the results .

How do I do this ?

 

<!DOCTYPE html><html><body>

<form action="demo_form.asp" method="get"> <input type="checkbox" name="vehicle" value="Bike"> I have a bike<br> <input type="checkbox" name="vehicle" value="Car" checked="checked"> I have a car<br> <input type="submit" value="Submit"></form>

</body></html>

 

so I want the results are 'Car' with the checkbox displayed

and 'Bike' with the checkkbox displayed

 

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...