Gossamer Forum
Home : General : Internet Technologies :

Javascript Select List

Quote Reply
Javascript Select List
This is weird. I have a form named "tickets" with a field called "Country" .....I want to loop through the select list of countries and select an option if it matches the value of a <%tag%>

I'm using:

Code:
<script language="javascript">
function select_lists() {
for (var count = document.tickets.Country.options.length - 1; count >= 0; count--) {


}
}
</script>

....for the loop but that tells me:

document.tickets.Country.option.length is null or not an object Frown

Last edited by:

Paul: Aug 2, 2002, 10:27 AM
Quote Reply
Re: [Paul] Javascript Select List In reply to
Ugh sorry, it was because I had a hidden field which was conflicting.