jquery设置文本框只读
$('input:text').attr("disabled","disabled");//设为不可用
$('input:text').removeAttr("disabled"); //取消不可用的设置
$('input:text').attr("readonly","readonly");//设为只读
$('input:text').removeAttr("readonly");//取消只读的设置
$('input:text').attr("disabled","disabled");//设为不可用
$('input:text').removeAttr("disabled"); //取消不可用的设置
$('input:text').attr("readonly","readonly");//设为只读
$('input:text').removeAttr("readonly");//取消只读的设置