Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to use multiple class for Select Control

How to use multiple class for Select Control

Scheduled Pinned Locked Moved ASP.NET
questionhtmltutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijayitsb
    wrote on last edited by
    #1

    Hi, I am using HTML select control and i want to display first option in italics style, other options are in normal font-style. How can i do this ?

    Cheers..! Vijay s

    A H 2 Replies Last reply
    0
    • V Vijayitsb

      Hi, I am using HTML select control and i want to display first option in italics style, other options are in normal font-style. How can i do this ?

      Cheers..! Vijay s

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      you can create a custom select control using divs ... and javascript.:rose:

      Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
      Create .NET Templates

      modified on Friday, May 15, 2009 5:20 AM

      1 Reply Last reply
      0
      • V Vijayitsb

        Hi, I am using HTML select control and i want to display first option in italics style, other options are in normal font-style. How can i do this ?

        Cheers..! Vijay s

        H Offline
        H Offline
        herotayson
        wrote on last edited by
        #3

        you can use example below <style> .italic{ /*add code here*/ } .normal{/*add code here*/} </select> <select> <option class="italic" > option1 </option> <option class="normal" > option1 </option> <option class="normal" > option1 </option> .... </select> sealight

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups