Hi I have a page for which I have four different style sheets like this
<link rel="Stylesheet" href="fancydropdown.css" title="style-1" type="text/css" />
<link rel="Alternate" href="fancydropdown_1.css" title="style-2" type="text/css" />
<link rel="Alternate" href="fancydropdown_2.css" title="style-3" type="text/css" />
<link rel="Alternate" href="fancydropdown_3.css" title="style-4" type="text/css" />
And this is my HTML
<div id="menu">
<ul class="tabs">
<li><h4><a href="#">In the blog »</a></h4></li>
<li class="hasmore"><a href="#"><span>Styles</span></a>
<ul class="dropdown">
<li><a href="#" rel="style-1">style-1</a></li>
<li><a href="#" rel="style-2">style-2</a></li>
<li><a href="#" rel="style-3">style-3</a></li>
<li><a href="#" rel="style-4">style-4</a></li>
<li class="last"><a href="#">Menu item 6</a></li>
</ul>
</li>
<li class="hasmore"><a href="#"><span>Topics</span></a>
<ul class="dropdown">
<li><a href="#">Topic 1</a></li>
<li><a href="#">Topic 2</a></li>
<li><a href="#">Topic 3</a></li>
<li class="last"><a href="#">Topic 4</a></li>
</ul>
</li>
<li><h4><a href="#">Elsewhere »</a></h4></li>
<li><a href="#"><span>About</span></a></li>
<li class="hasmore"><a href="#"><span>Networks</span></a>
<ul class="dropdown">
<li><a href="#">Twitter</a></li>
<li><a href="#">posterous</a></li>
<li><a href="#">SpeakerSite</a></li>
<li><a href="#">LinkedIn</a></li>
<li class="last"><a href="#">See more…</a></li>
</ul>
</li>
<li><a href="#"><span>Bookmarks</span></a></li>
this my dropdown class
<ul class="dropdown">
<li><a href="#" rel="style-1">style-1</a></li>
<li><a href="#" rel="style-2">style-2</a></li>
<li><a href="#" rel="style-3">style-3</a></li>
<li><a href="#" rel="style-4">style-4</a></li>
<li class="last"><a href="#">Menu item 6</a></li>
</ul>
when I click on style-1 and so on the style sheets shoud be change …..How can I do this using jquery? Can any one help me?
And please provide me the library’s to be used to?
You just change the HREF of your stylesheet.