lundi 21 avril 2014

I cannot style a traditional html form drop down menu which is filled by JavaScript


Vote count:

0




I have this drop down menu which is filled by JavaScript. I want to style the elements in the drop down but somehow nothing I tried worked. Does anyone have suggestions?



<form action="" method="post">
<div class="cddp">

<select name='List1' onchange="fillSelect(this.value,this.form['List2'])">
<option selected>Category</option>
</select>

&nbsp;
<select name='List2' onchange="getValue(this.value,this.form['List1'].value)">
<option selected >Subcategory</option>
</select>
</div>


The CSS for it:



.cddp{
color: red;
}


asked 53 secs ago






Aucun commentaire:

Enregistrer un commentaire