Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    76
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Thumbs up How to make this option?

    Code:
        <select id='signature'>
          <option value='null'>Select A Signature</option>
          <option value='CFC1'>Combat Arms Classic</option>
          <option value='CFC4'>Nuked</option>
          <option value='CFC2'>Sniperz Riflez</option>
          <option value='CFC3'>I R Pro</option>
          <option value='CFC5'>Skull Head</option>
        </select>
    I have all these options to choose certain signatures. But how do I add an option that you cant click and could be like a category above something.

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Posts
    238
    Thanks
    3
    Thanked 37 Times in 37 Posts
    By using <optgroup>.

  • #3
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    This is an HTML question. Please help us stay organized by posting in the correct category.

    Thanks,
    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •