Hi!
I'm using Javascript to make a form's input read only. I basically open a child window, and then the child window provides it value them makes it readonly. I passes on its value correct, however i can't seem to get the input greyish/readonly.
This is the command I use:
//works on IE!
window.opener.document.forms[0].elements['lastname'].value = last;
//doesn't work on IE!
window.opener.document.forms[0].elements['lastname'].readOnly = true;
It works beautifully on mozilla, however i can't seem to get it to work on IE. Any suggestions??
I'm using Javascript to make a form's input read only. I basically open a child window, and then the child window provides it value them makes it readonly. I passes on its value correct, however i can't seem to get the input greyish/readonly.
This is the command I use:
//works on IE!
window.opener.document.forms[0].elements['lastname'].value = last;
//doesn't work on IE!
window.opener.document.forms[0].elements['lastname'].readOnly = true;
It works beautifully on mozilla, however i can't seem to get it to work on IE. Any suggestions??