How to display a dropdown list with a selected value?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 1627 | Points: 40
Answer:

<html>

<body>
<form action="">
<select name="Programming Languages">
<option value="vb">VB</option>
<option value="java">Java</option>
<option value="dotnet" selected="selected">.NET</option>
<option value="c">C</option>
</select>
</form>
</body>
/html>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response