2

示例位于http://jsfiddle.net/4RAPH/或见下文:

<select class="businessTypePullDown">
    <option value="" disabled selected>Business Type</option>
    <option value="1">General</option>
    <option value="2">Lawyer</option>
    <option value="3">Software Development</option>
    <option value="4">Auto-repair</option>
</select>

function filterPullDown () {
    alert('hello');
}

$("businessTypePullDown").change(filterPullDown);
4

1 回答 1

7

只是一个错字,你错过了一个点:

 $(".businessTypePullDown")

你的小提琴更新了:http: //jsfiddle.net/4RAPH/1/

于 2012-08-29T15:12:27.717 回答