[thelist] strange behavior with form field

Tab Alleman talleman at RealMetros.com
Thu Oct 4 10:23:00 CDT 2001


My first guess is that you're using some kind of server-side code to
soft-code the "selected" into the option tag, and that's failing.  I
don't know what would cause the select box to be blank if "selected" is
hard-coded into an option tag.. 

have you tried viewing source on the page when the select box comes up
blank?  anything at all weird about the html of the select?


-----Original Message-----
From: David Prowak [mailto:prowak at yahoo.com]
Sent: Wednesday, October 03, 2001 4:56 PM
To: thelist at lists.evolt.org
Subject: [thelist] strange behavior with form field


Hi,
I have a select list on a form and have defined a
default value for the list:
<select name="sltStreetSuf">
          <option value="ST" selected>St</option>
          <option value="AV">Ave</option>
          <option value="DR">Dr</option>
          <option value="PL">Pl</option>
          <option value="RD">Rd</option>
          <option value="LA">La</option>
          <option value="TE">Te</option>
          <option value="PA">Pk</option>
</select>
          
Upon submitting the form, everything works fine.
After the form is processed, and they return to the
form, the sltStreetSuf field is blank.
How can a select field be blank when none of the
choices are blank?
Why is the selection field blank when a default
selection is specified (ST)?

How do I fix this behavior?
TIA,
Dave

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just
$8.95/month.
http://geocities.yahoo.com/ps/info1

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list