HighDots Forums  

Adding Some Text Between Two Consecutive <option> Tags in a Form?

alt.html alt.html


Discuss Adding Some Text Between Two Consecutive <option> Tags in a Form? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
maria
 
Posts: n/a

Default Adding Some Text Between Two Consecutive <option> Tags in a Form? - 04-15-2008 , 10:46 PM






I need to place some text between two consecutive "<option>" tags of a
form.
I would like something like the setting below.
I need the user to be able to see some separation text,
like "FONTS" below.
This text should not be clickable.
How do I do it?

@@@@@@@@@@@@@@@

<form>
.....
<option class="bounds" value="clipart">Clipart</option>
FONTS
<option class="brenda" value="fonts">Font</option>
.....
</form>

@@@@@@@@@@@@@@@

Thank you!

maria

Reply With Quote
  #2  
Old   
Jim Moe
 
Posts: n/a

Default Re: Adding Some Text Between Two Consecutive <option> Tags in a Form? - 04-15-2008 , 11:23 PM






On 04/15/08 08:46 pm, maria wrote:
Quote:
I need to place some text between two consecutive "<option>" tags of a
form.

Use the <optgroup> element. (I have not tried it with MS browsers; it
might work.)
Or you could add the "disabled" attribute to the labeling <option>.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #3  
Old   
maria
 
Posts: n/a

Default Re: Adding Some Text Between Two Consecutive <option> Tags in a Form? - 04-16-2008 , 12:23 AM



On Tue, 15 Apr 2008 21:23:00 -0700, Jim Moe
<jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote:

Quote:
On 04/15/08 08:46 pm, maria wrote:
I need to place some text between two consecutive "<option>" tags of a
form.

Use the <optgroup> element. (I have not tried it with MS browsers; it
might work.)
Or you could add the "disabled" attribute to the labeling <option>.
Thank you, Jim. It works fine with both Firefox and IE.

maria


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.