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:
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
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