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
Post a Comment