11. 设置只读属性

$('#orgRoleCode').attr('readonly', true);

原文地址:https://www.cnblogs.com/zkx4213/p/6928884.html