両方の選択ボックスにアイテムが選択されるまで、ボタンを非表示にしようとしています。
<select id="comType">
<option>-- Select --</option>
<option>Call</option>
<option>Fax</option>
<option>Email</option>
</select>
<select id="comDirection">
<option>-- Select --</option>
<option>Incoming</option>
<option>Outgoing</option>
</select>
<a href="#" id="button_that_displays_only_when_both_selects_have_input">Next</a>
私が現在使用しているものですが、正しくないことはわかっています。
<script>
$(document).ajaxSuccess(function () {
if ($("#comType").change()) || ($("#comDirection").change()))
{ $("#button_that_displays_only_when_both_selects_have_input").show()}
});
</script>
最初の選択オプションが単なるプレースホルダーであるため、最初の選択オプションをカウントできないように、これが実際の選択を保証できる場合は、追加のボーナスになります....
ありがとう、マーク