Forum Moderators: open

Message Too Old, No Replies

Forcing a default FORM select

         

Kysmiley

4:42 pm on May 13, 2004 (gmt 0)

10+ Year Member



I seem to forget the coding to force the select option to automaticly show a certain option when a visiter comes to the site or when he clicks on an option and then comes back I want it to reset to a default setting. What is the code line I need
Pat

korkus2000

4:44 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<option value="default" selected>Choose an option</option>

BlobFisk

5:00 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



FYI, in XHTML you need to use selected="selected" to be standards compliant.

HTH