Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The values of <option> can be shared between different <select> elements in HTML by giving them the same name attribute. When a user submits the form containing multiple <select> elements with the same name attribute, the selected value of the corresponding <option> in each <select> element will be sent to the server as part of the form data. This is commonly used in forms where the user needs to select an option from a list and the same options need to be available in multiple places within the form.