初始,部分輸入框禁止輸入:
$(document).ready(function(){
$("#fundCode").prop("disabled",true);
$("#convertFundCode").prop("disabled",true);
$("#allowtradeVol").prop("disabled",true);
$("#appVol").prop("disabled",true);
$("#passwd").prop("disabled",true);
$("#confirmBtn").prop("disabled",true);
if($("#custType2").val() == null || $("#custType2").val() == ""){
$("#selectBtn").prop("disabled", true);
}
});
當(dāng)點(diǎn)擊按鈕之后,鼠標(biāo)移出按鈕,部分輸入框允許輸入,并且另一部分禁止輸入:
$("#selectBtn").click(function(){
? ? ? ?$("#selectBtn").mousemove(function(){
?????????????????????????????????? $("#appVol").prop("disabled", false);
? ? ? ? ? ?$("#fundCode").prop("disabled", false);
? ? ? ? ? ?$("#adviserCode").prop("disabled", false);
? ? ? ? ? ?$("#convertFundCode").prop("disabled", false);
? ? ? ? ? ?$("#passwd").prop("disabled", false);
? ? ? ? ? ?$("#selectBtn").prop("disabled", true);
? ? ? ? ? ?$("#riskLevel").prop("disabled", true);
? ? ? ? ? ?$("#financeAcc").prop("disabled", true);
? ? ? ? ? ?$("#custType").prop("disabled", true);
? ? ? ? ? ?$("#accNo").prop("disabled", true);
????????????????? }
});