$(document).ready(function () {
$(".test123").live("change", function () {
var ddlBrand = "";
ddlBrand = $('#<%= ddlBrand.ClientID %>').val();
if (ddlBrand > 0) {
return confirm('The values entered for this brand will reset. Are you sure you want to change the Brand.');
});
}
});
return false;
});
上記のコードの問題は、確認ボックスのキャンセル時にページの状態を保持できないことです。また、最初のドロップダウン選択では、確認ボックスは必要ありません。助けてください。