My mistake.  That's not correct XHTML, which is what you should be
coding for if you don't want to have to redo all of your HTML in the
future.
 
Here's a good reference for converting your HTML documents to XTHML:

http://www.w3schools.com/xhtml/xhtml_syntax.asp


Tom

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 30, 2002 4:39 PM
To: CF-Talk
Subject: RE: dynamic select


> Remember, the proper HTML should be:
> 
>  <option value="myvalue" selected="selected"

No, the SELECTED attribute is what you might call a Boolean attribute -
one for which the presence or absence of the attribute specifies its
value (true or false). So, this is the correct syntax for a selected
option:

<option value="whatever" selected>display text goes here</option> (the
closing tag is required for XHTML compliance, but not otherwise)

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to