当span框!=空时,input框不可操作怎么写
var span = $("#sapn名称").text();//状态信息
if (span != "") {
document.getElementById("input").disabled = true;
} else {
document.getElementById("input").disabled = false;
}
if ($('span').text().trim() != '') { $('input').attr('readonly', 'readonly'); }