javascript - onChange select not working -


i have drop down select load of colors options need change color of div (called somediv) in case when option chosen

the options this

<select id="evt_color"> <option value="#1b1404" style="background:#1b1404;">acadia</option> </select 

and on

<script type="text/javascript;"> $("#evt_color").change(function() { $("#somediv").css("background-color", $(this).val()); }); </script> 

i have managed working on firefox only, can me solution or work around please

paul

trigger("change"); last change makes no since :)


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -