jquery 两个控件同享一个function
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$("#ddlCity").change(aa);
$("#ddlLocal").change(aa);
});
function aa() {
alert(this.value);
}
</script
$(document).ready(function() {
$("#ddlCity").change(aa);
$("#ddlLocal").change(aa);
});
function aa() {
alert(this.value);
}
</script