Вопрос

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?

Это было полезно?

Решение

Change contentEditable attribute to false to disable the field

$('div.ms-inputuserfield').eq(1).attr("contentEditable","false");
Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top