其实没啥更好的方法,可以单独为这3个input加个额外的class='xxx'。//用not()选择器最好不过$("#readOnlyinfo input:not(.xxx)").attr("readonly", false);