Читайте также: |
|
<label for="temp">Temperature:</label>
<input type="text" name="temp">
<input type="button" value="Convert" onclick="processForm()">
<label for="resultField">Result:</label>
<input type="text" name="resultField">
_____________________________________________________________________________________
<select>
<select> fields have <option> tags which contain each option that a user may select.
It also needs a name just like the <input> fields. In this case, the name of our <select> is destination.
Adding "selected" to an option value will automatically default to that option when the form initially loads.
<select name="destination">
<option value="Antarctica">Antarctica</option>
<option value="Costa Rica" selected>Costa Rica</option>
<option value="Sokal" selected>Sokal</option>
</select>
</form>
_____________________________________________________________________________________
Дата добавления: 2015-08-17; просмотров: 30 | Нарушение авторских прав
<== предыдущая страница | | | следующая страница ==> |
Яваскрипт ХТМЛ | | | Цельсий и Фаренгейт |