I have this drop down
<select class="dropdown"><option value="0">Disabled</option><option value="1">Enabled</option></select>
In javascript using query or just plain javascript, I want to dynamically change the value of the select box to that of my div show. here is my div show
Enabled
so if this div is Enabled I should have selected in Enabled option. So the above drop down would be
<select class="dropdown"><option value="0">Disabled</option><option value="1" selected>Enabled</option></select>
how would I do that? thanks
How about this fiddle?
http://jsfiddle.net/rMrSU/
HTML
Enabled
JS