JSP

I have say this code in List Box

<select name="age">

<option>0-20

<option>21-30

<option>over 30</option>

</select>

And I want to select (display) 21-30 on HTML from the list what should be done do that ?

Note I already have the list populated, I know how to change the selected option while i amd filling the list,

What I don't know is how to display or highlight particular value on already popoulated list

[502 byte] By [jusa] at [2007-10-3 1:48:57]
# 1

<html>

<head>

</head>

<body>

<form name="f1">

<select name="age">

<option>0-20</option>

<option>21-30</option>

<option>over 30</option>

</select>

</form>

<script lang="JavaScript">

document.f1.age.selectedIndex=1;

</script>

</body>

</html>

evilknighthka at 2007-7-14 18:47:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...