Thursday, July 21, 2016

What is a select field? Give an example.

Select field always has options to choose desired item. Following is an example of select field:
<select>
  <option>Active</option>
  <option>Inctive</option>
</select>
If we want keep an option selected then we can write the keyword called selected in that option. See the code below:
<select>
  <option>Active</option>
  <option selected>Inctive</option>
</select>

No comments:

Post a Comment