> I don't want users to be able to select every item--I want
> them to have to select as far as they possibly can within the
> subcategories. So...
>
> QUESTION 1: Is there a way to disable selection ability on
> certain items within the select box (just don't allow it to
> be highlighted when clicked), and if so, how?
Yes, you can do this with JavaScript. You can monitor the onchange event of
the select box, then see if the user's selection falls within the set of
items you don't want to be selectable - you might use a specific option
value to define that set.
> QUESTION 2: How do I conditionally format the look of each of
> these menu items within this one select list? I have been successful
> in conditionally changing words to uppercase, or indenting, but
> I cannot get it to conditionally bold a word, change the font
> size, add a line break, etc. I've tried style sheets, but you
> have to actually specify the class in the <TD> tag, which won't
> work. I need to be able to optionally format the <OPTION> tags.
Unfortunately for you, there's not too much you can do about this. You have
very little control, even with styles, over the look and feel of form
elements.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists