javascript - Why is <select>'s attribute 'value' can't be set? -


i've searched web couldn't find answer. know can set value javascript, why can't html?

there no valid attribute 'value' 'select' element. see http://www.w3schools.com/tags/tag_select.asp

you can set property dom element via javascript, not saying property has valid counterpart in html.

edit: better link here: https://www.w3.org/wiki/html/elements/select


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -