Style="text-decoration: line-through"

Discussion in 'ASP .Net' started by Klaas, Aug 6, 2006.

  1. Klaas

    Klaas Guest

    I have a dropdownlist.
    When the user clicks on a button I want the selected listitems text to be
    line-through.
    Is this possible in IE? or with some javascript?

    tia
     
    Klaas, Aug 6, 2006
    #1
    1. Advertising

  2. hi klass, you can make all items, not just the one selected item.

    Setting font styles on individual option items in a select element is not
    supported in IE.

    protected void Button1_Click(object sender, EventArgs e)
    {
    DropDownList1.Attributes.Add("style", "text-decoration:
    line-through");
    }

    Regards,
    Alessandro Zifiglio
    http://www.AsyncUI.net

    "Klaas" <> ha scritto nel messaggio
    news:%...
    >I have a dropdownlist.
    > When the user clicks on a button I want the selected listitems text to be
    > line-through.
    > Is this possible in IE? or with some javascript?
    >
    > tia
    >
    >
    >
     
    Alessandro Zifiglio, Aug 6, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob Nicholson
    Replies:
    3
    Views:
    747
    Rob Nicholson
    May 28, 2005
  2. Replies:
    0
    Views:
    2,465
  3. Replies:
    1
    Views:
    793
    Bertilo Wennergren
    Nov 24, 2003
  4. Ken Varn
    Replies:
    0
    Views:
    470
    Ken Varn
    Apr 26, 2004
  5. Klaas

    Style="text-decoration: line-through"

    Klaas, Aug 6, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    173
    Alessandro Zifiglio
    Aug 6, 2006
Loading...

Share This Page