I have a form that contain two same fields 'Nama Mentor PIC' with logical name 'ecom_namamentor'
I want to lock them using javascript, but when I run the application only 1 field is locked while the others are not.
even though both fields have the same logical name, and in javascript I have set it to be locked but it doesn't work.
how can i lock those two fields? Did I miss something?
this is javascript code

and this is what the form field looks like when javascript is run
