how to submit using checkbox 1

how to submit using checkbox

    onchange="this.form.submit()"

Here is what the above code is Doing:
1. We’re creating a form with a select element.
2. We’re creating a select element with a name of “category”.
3. We’re creating an option element for each category in the categories list.
4. We’re setting the value of each option element to the category’s name.
5. We’re setting the text inside each option element to the category’s name.
6. We’re setting the selected option to the category that’s currently selected.
7. We’re setting the onchange attribute of the select element to submit the form.

Similar Posts