How to create a DropDown list box?

 Posted by Raja on 3/5/2009 | Category: HTML 5 Interview questions | Views: 12274

To create a dropdown list box in HTML, write following code

  <select name="drop1" id="drop1"> 

<option value="1">item 1</option>
<option value="2">item 2</option>
<option value="0">All</option>

This will create a dropdown with two list item "item 1" and "item 2".

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response