On 20/02/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:
> 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...

That is only the case if it is not wrapped in quotes, i.e. the
following are the same:

$("#id1").css(textDecoration, "line-through");
$("#id1").css("text-decoration", "line-through");

>
>
> 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
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to