Selecting in a DropDownList

Hello everybody

I'm using Netbeans and Visual Web Pack to develop this web-thingy. I have a DropDownList where the user i supposed to select an item. After selection I want my dropdownlist to return to the first item. Can anybody tell me how to do this. I can't seem to find it out by myself.... As is now it shows the item the user selected.

I'm a student and not a very experienced one either, so please tell me if I haven't provided enough information

[477 byte] By [ninamoea] at [2007-11-27 11:32:03]
# 1

To go back first item automatically:

document.getElementById("listboxname").selectedIndex = 0;

If you put 1, that means the second item in the list box.

skp71a at 2007-7-29 16:43:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thank you for trying to help me.

Before I saw your reply I had already found the answer to my question here: http://www.netbeans.org/kb/55/dropdowncomp.html

but thanks anyway :o)

nina

ninamoea at 2007-7-29 16:43:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...