hdncountが非表示の入力を持つリピーターで名前が付けられたカウントとしての入力があります。そして、私はリピーターからサーバー側のボタンを持っています。このスクリプトは、カウントのonblurイベントを実行します。クライアントが確認時に[OK]ボタンをクリックした場合にサーバー側ボタンのクリックイベントをトリガーしたい。それを行うにはどうすればよいですか?
<script type="text/javascript">
function changeItemCount(input) {
var hdnCount = $(input).closest("div").find("input[id=hdnCount]").val();
var crrCount = $(input).closest("div").find("input[id=count]").val();
if (hdnCount != crrCount) {
var answer = confirm("Ürün adedi değiştirilecektir. Onaylıyor musunuz?");
return answer;
} else {
return true;
}
}
</script>