I have an application which uses a dropdown for one of the fields. After making a choice in this dropdown and setting another field, I query a database and return information to the page. When the page has been reset with the info, I need the dropdown, with its selection set, to be disabled, as the user should not beable to change this at this point, as it is a part of the key. I have tried to use document.getElementById('dropdown').disabled = true but no success. Any ideas? Thanks in advance.
Thank you for the reply Padonak, however, setting the disabled property to disabled did not work either. I am still able to change the selection which is what I need to prevent. I had thought this part would be rather simple, but it has proven to be quite a challenge.
01-17-2013, 08:30 AM
Ok. i figured out why this wasn't working for me. I was missing and = in i < 2, therefore I was not making it to the correct selection and skipping the area where I set it to disabled. Correction made and now it works like a charm.