HTML
Iam unable to fix problem in this code which change the color by using dropbox
code
<style>
.a {color:red;}
.b {color:green;}
.c {color:blue;}
</style>
<div class:"colorText">Select below to change the color of this text</div>
<select onchange="changeColor(this.value)">
<option value="a">Red</option>
<option value="b">Green</option>
<option value="c">Blue</option>
</select>
<script>
def changeColor(string value)
{
document.getElementById(‘.colorText’).class = value;
}
</script>