I have textarea and a listbox with values.
I want that in case user sets the focus on the textarea the value displayed in the listbox will change to one of the values in the list, for example, to the first on the list.
1) It is selected and not select
2) javascript is case sensitive: Index
so here is the right code (just as sjravee did)
<input type="text" name="owner" size="20" value="$rec[2]" onFocus="document.form1.owner1.selectedIndex=0">
Hope this helsp,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.