Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make name attribute mandatory for select tag. #251

Open
BTWS2 opened this issue Aug 31, 2024 · 0 comments
Open

Make name attribute mandatory for select tag. #251

BTWS2 opened this issue Aug 31, 2024 · 0 comments

Comments

@BTWS2
Copy link
Collaborator

BTWS2 commented Aug 31, 2024

The name attribute is not strictly required in an HTML <select> element. However, if you want to send the selected value when the form is submitted, the name attribute is essential. Without the name attribute, the selected option's value won't be included in the form submission data.

https://github.com/dodona-edu/judge-html/blob/main/validators/html_tags_attributes.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant