I need to done this in Javascript if its possible not with jquery... Here is explanation...
I have a several stylesheet links on page like this
<link rel="stylesheet" href="http://example.com/theme/themered/themered.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://example.com/basic/basic.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://example.com/default/style.css" type="text/css" media="all" />
and have select HTML tag with around 50 theme css options but will add only 2 here
<select>
<option value="http://example.com/theme/themeblue/themeblue.css">Theme Blue</option>
<option value="http://example.com/theme/themegreen/themegreen.css">Theme Green</option>
<option value="http://example.com/theme/themeorange/themeorange.css">Theme Orange</option>
</select>
and now.. I need from javascript, when somebody select, for example "Theme Blue" from select dropdown, to script find specific stylesheet, stylesheet with tagname link and with href it contains string "http://example.com/theme".
And its need to delete this url and replace it with one from selected dropdown, or maybe to replace only this part after "http://example.com/theme" for example if I select Blue theme... it will replace "themered/themered.css" with "themeblue/themeblue.css"
Thanks