1

I make person field as read-only in my list forms using following code.

$('div.ms-inputuserfield').eq(1).attr('disabled','disabled');

OR

$('div.ms-inputuserfield').eq(1).prop( "disabled", true );

This is working in IE. But not working in Chrome. Any reasons?

1 Answer 1

1

Change contentEditable attribute to false to disable the field

$('div.ms-inputuserfield').eq(1).attr("contentEditable","false");
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.