콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1957 화면

I want to make the field to be read only or not by a button, however instead of using XML, I would like to make it run by Javascritpt.

Can it be possible ?

아바타
취소
작성자 베스트 답변

Sorry, i dont have enough Karma to comment.

Thx, let me follow you way.

아바타
취소
베스트 답변

Hi,

It is possible to make the field read-only through Javascript. It can be done as follows

document.getElementById('field_id').setAttribute('readonly', true);

In these cases, we have to use the setAttribute method. Here, with the help of the field's id, we can set the readonly as true. We have to replace the field_id with our corresponding id.

Regards

아바타
취소