Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Style="text-decoration: line-through"

Reply
Thread Tools

Style="text-decoration: line-through"

 
 
Klaas
Guest
Posts: n/a
 
      08-06-2006
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



 
Reply With Quote
 
 
 
 
Alessandro Zifiglio
Guest
Posts: n/a
 
      08-06-2006
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
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments