// Switch StyleSheets with jQuery
<link rel="stylesheet" type="text/css" href="/css/a.css" title="title1" />
<link rel="stylesheet" type="text/css" href="/css/b.css" title="title2" />
if ( 1 = 1 ) {
$("link[title='title1']").attr("href", "c.css");
} else {
$("link[title='title1']").attr("href", "d.css");
}
'IT > Development' 카테고리의 다른 글
[JSTL] 자주쓰는 Function (fn) 정리 (0) | 2014.02.17 |
---|---|
[jQuery] javascript에서 jQuery의 function 사용법 (0) | 2013.11.26 |
[Java] StringUtils (0) | 2013.10.01 |
[Java] HashMap의 containsKey 활용 (0) | 2013.09.12 |