Glen,
I use a couple methods:
1) Add an empty LINK and the set the href in the script:
$('#mylinkid').attr('href', stylesheetpath);
2) probably better but a little longer:
$('head').append('<link id="mylinkid" href="stylesheetpath"
rel="stylesheet">')
I'm sure someone will chime in here and tell me I'm an idiot, at which
point I'll go fix my own code... :-)
--Steve
[EMAIL PROTECTED] | irc: monkinetic|redmonk
> -------- Original Message --------
> Subject: [jQuery] Attach a Style Sheet
> From: "Glen Lipka" <[EMAIL PROTECTED]>
> Date: Tue, October 10, 2006 11:44 am
> To: "jQuery Discussion." <[email protected]>
>
> Is there a simple way to attach a style sheet to the page in jQuery?
>
> Thanks,
>
> Glen
>
> ---------------------------------------------------------------------
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/