[jQuery] Attach a Style Sheet

[jQuery] Attach a Style Sheet

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
sivy@userwire.com | irc: monkinetic|redmonk









    • Topic Participants

    • sivy