문제

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