I have 2 different CSS files for 2 clients
If I select option 1 from indexer page, all inside html pages should append below css file:
<link rel="stylesheet" type="text/css" href="css/client1.css">
or if I select option 2, then it should load below css file:
<link rel="stylesheet" type="text/css" href="css/client2.css">
But, this change has to happen for all the html files which is under pages/
Indexer.html
<select class="selInput" id="selectClient">
<option>-- Select Client --</option>
<option value="client1">Client 1</option>
<option value="client2">Client 2</option>
</select>
<script>
$(document).ready(function(){
$( document ).on( "change", "#selectClient", function(){
jQuery(this).find("option:selected").each(function(){
if($(this).attr("value")=="client1-script"){
$("body").load("css/client1.css");
}
else if($(this).attr("value")=="client2-script"){
$("body").load("css/client2.css");
}
});
});
});
</script>
bodyaccordingly?.load()works?