ブラウザの違いが原因である可能性はありません。Chromeでもテストしました。私のコードのエラーでしょうか?チェックボックスを押すと、テキストボックスが無効になるはずです。これは今のところありません。私が持っているコードは次のとおりです。ページのセクションの上部にスクリプトを配置しました。
フォーム名 : frmPost
<script type="text/javascript">
function enabledisable() {
if (document.getElementById("ePrice").checked) {
document.frmPost.txtPrice.disabled=false;
} else {
document.frmPost.txtPrice.disabled=true;
}
}
</script>
<input type="text" name="txtPrice" id="txtPrice" size="5">
<input type="checkbox" id="ePrice" name="ePrice" onclick="enabledisable()"/>