I am using following "code" to disable people picker in custom edit form:
$("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker
$("span[id$='_UserField']").find("img").hide(); //hiding search field and check which are adjacent to people picker
Control is disabled but when there is something (or rather someone) in the field already, I can select that person and delete it by pressing delete on the keyboard. Is there a way of restricting that behavior?
Just found out that it is working fine in IE10 but not in Chrome.