"SelectedIndex" is a read-only property in all browsers except Navigator 3 (O'Reilly's JavaScript: The Definitive Guide).
Cutter Scott Brady wrote: >>function validateForm(form) { >>if (form.myText.value.length < 1 ){ >> alert ('You must select at least one question to continue. n\nClick >>OK!); >> form.mySelect.options[1].focus(); >> return false; >>} >>return true; >>} >> >> > >Try this: >function validateForm(form) { >if (form.myText.value.length < 1 ){ > alert ('You must select at least one question to continue. n\nClick >OK!); > form.mySelect.selectedIndex = 0; // The first index > form.mySelect.focus(); > return false; >} >return true; >} > >Scott >-------------------------------- >Scott Brady >http://www.scottbrady.net/ > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.