input タグの入力を無効にする。
サンプルURL
===========================================
htmlソース index.html
===========================================
Sample form
=======================================================
javascript ソース func.js
=======================================================
//登録ボタンの入力可、不可を切り替える
function swSubmit(){
if(document.getElementById(”form1″).submit.disabled){
document.getElementById(”form1″).submit.disabled = false;
}else{
document.getElementById(”form1″).submit.disabled = true;
}
}
//テキスト入力の可、不可を切り替える
function swText(){
if(document.getElementById(”form1″).textinput.disabled){
document.getElementById(”form1″).textinput.disabled = false;
}else{
document.getElementById(”form1″).textinput.disabled = true;
}
}
====================================================

0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.