> -----Original Message----- > I use select with multiple=false and I don't set the parameter's > value. As result I get: > <form name="faqForm" method="post" action="/dp/showFaq.do"> > <select name="id" onchange="submit()"> > <option value="1">Test1</option> > <option value="2">Test2</option> > </select> > </form> > So none of options has "selected" attribute, but first option is > selected on the page.
I think what you're trying to do is invalid HTML, and the browser is "fixing" it for you by selecting the first element. In a drop-down select list, there's really no such thing as having none of the items selected. Whichever one is "visible" is selected. If you need to have 'nothing' selected, how about a 'blank' element at the top: <option value="">--Please choose one--</option> You may not be setting the value, but the form property exists, so it DOES have a value-- null or the empty string, probably. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

