jquery funtion fired when dropdownlist selectedvalue
- by Rahat Saini
i have a jquery animate function which i want to call if the selectedvalue for my dropdown list is X
<script>
$(function () {
var state = true;
($("#button").click)(function () {
if (state) {
$("#effect").animate({
backgroundColor: "#aa0000",
color: "#fff",
width: 500
}, 1000);
} else {
$("#effect").animate({
backgroundColor: "#fff",
color: "#000",
width:500
}, 1000);
}
state = !state;
});
});