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
Post a Comment