What is the select object?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the select object?
Rating:
The select object is the most complex object in JavaScript. It can be displayed as a drop-down list or as a scrolling list. The select object can be used as a medium to store a lot of data in a small space.
The select object can be created in the following ways:
- The drop-down list
- The scrolling list
<select>
<option>List of cities</option>
<option>Delhi</option>
<option>Agra</option>
<option>Jaipur</option>
</select>
</form>
The image below displays the drop-down list:
<select size=6>
<option>List of cities</option>
<option>Delhi</option>
<option>Agra</option>
<option>Jaipur</option>
</select>
</form>
The image below displays the scrolling list:

Rating:
Was this information helpful?
Other articles
- What is the parseFloat method?
- What is the protocol property of the server object?
- What is the hash property?
- What is the prompt method?
- Note for document.all property.