Try this:
$("#id1").css("textDecoration", "line-through");
Remember that when you use the .css function to set a style, it must
becapitalized camel-style; that is "text-decoration" becomes
"textDecoration" and the same happens with backgroundColor, etc...
On 2/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
How do I use JQuery to set the text-decoration of an element with ID "id1"
to "line-through"?
Thanks, - Dave
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/