[Javascript] Set all list box drop downs to a single value

Hassan Schroeder hassan at webtuitive.com
Fri Jul 18 15:34:18 CDT 2003


Peter Brunone wrote:

> 	If you know the names of the checkboxes (BTW, it's a good idea
> not to start object names with integers, because it can confuse the
> scripting engine),

Erm, it's actually a violation of the spec --

   ID and NAME tokens must begin with a letter ([A-Za-z]) and may
   be followed by any number of letters, digits ([0-9]), hyphens
   ("-"), underscores ("_"), colons (":"), and periods (".").

<http://www.w3.org/TR/html4/types.html#type-name>

And Murphy's Law dictates that it'll work fine anyway -- until you
*really* need it to, and don't have time to change them all :-)

FWIW!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list