jQuery(document.createElement("link"))
.attr({type: "text/css",href: "globalHeader.css",rel:"stylesheet"})
.appendTo("head");
This works too.
Glen
On 8/24/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
>
>
> This seems to work in FF2/Mac:
>
> var myCss = 'p { border: 2px solid #faa; }';
> $(head).append('<style type="text/css">' + myCss + '</style>');
>
> --Erik
>
>
> On 8/24/07, Pops <[EMAIL PROTECTED]> wrote:
> >
> > I have a <textarea> with CSS code and I would like to inject to into
> > the current page
> >
> > Currently, I'm saving the text to a .CSS file and reloading the page.
> > Thats old school! How is this done with jQuery?
> >
> >
>