input text 置灰例子

阅读更多
			

 

.cantinput{background-color:#aaaaaa;}

 

 

function changeState(){
    if (testform.select1.value == 1) {
        testform.input1.className="";
		testform.input1.disabled = "";
        testform.input2.className = "cantinput";
		testform.input2.disabled = "true";
    }
    else {
        testform.input1.className = "cantinput";
		testform.input1.disabled = "true";
        testform.input2.className = "";
		testform.input2.disabled = "";
    }
}
 

你可能感兴趣的:(input text 置灰例子)