- text text box is set to disabled or documents obtained or lost focus event
- Button button
- Single box (with box radio)
- Checkboxes (checkbox is mainly set out to give a lable label, so click on the text when the operation can be selected)
- Pull-down menu (select label contains option to set the default option selected = 'selcted')
- Text field textarea (disabled)
Several properties are designed to value
-
-
input elements, the content of the operation value textarea element by
-
button element content by innerHTML or innerText
-
option content through innerHTML or innerText
-
-
type can get the input element, an element of type button
Three special form properties, acquired a Boolean data type.
-
disabled disabled property
-
checked checkbox properties
-
selected drop-down menu select Properties
1. The single-box form
<label> <input type="radio" name="gender">男888888 </label> <label> <input type="radio" name="gender">女888888 </label>
2. box form
<label> <INPUT type = " CheckBox " > This is a Thinking of </ label> <label> <INPUT type = " CheckBox " the checked = 'the checked' > This is a Thinking OFF </ label> <label> <INPUT = type " CheckBox " > this is a thinking off </ label>
Its styling elements available, then set .checked = false;
3. The drop-down menu
< SELECT ID = " SEL " > <option> piglets </ Option> <Option Selected = ' Selected ' > dog </ Option> // default first effect of <option> calf </ Option> </ SELECT > cancel it, get puppies .selected = false ;
And four pairs of text can be set textarea disabled = 'disabled'