Style="text-decoration: line-through"

K

Klaas

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
 
A

Alessandro Zifiglio

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top