jquery input readyonly 試了好久 設定input 唯讀 $('#inputid').attr("readonly", "readonly"); 解除input 唯讀 $('#linputid').removeAttr("readonly");