Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Sumo 27.06.2012 18:37 / 27.06.2012 18:38
The value attribute is used differently for different input types:http://www.w3schools.com/tags/att_input_value.asp
For "button", "reset", and "submit" - it defines the text on the button
For "text", "password", and "hidden" - it defines the initial (default) value of the input field
For "checkbox", "radio", "image" - it defines the value associated with the input (this is also the value that is sent on submit)
Note: The value attribute is required with <input type="checkbox"> and <input type="radio">.