I have a text input field which needs to be enabled/disabled based on the current selection in a Select menu.
I have it 90% working. The easy part is already done, i.e.: I added an "onchange" listener to the Select menu. Whenever it changes, the function checks the current selection, and disables/enables the associated text input field as required.
However, here is the problem...
When the page first loads, the text field is always enabled, regardless of the fact that the default selection in the Select menu requires it to be disabled.
I was hoping that there was some sort of "onload" even handler for a text input field, but it seems that there is not.
Does anyone have a potential solution for this problem?
Thanks in advance...
-Kennedy
------
KJR
I have it 90% working. The easy part is already done, i.e.: I added an "onchange" listener to the Select menu. Whenever it changes, the function checks the current selection, and disables/enables the associated text input field as required.
However, here is the problem...
When the page first loads, the text field is always enabled, regardless of the fact that the default selection in the Select menu requires it to be disabled.
I was hoping that there was some sort of "onload" even handler for a text input field, but it seems that there is not.
Does anyone have a potential solution for this problem?
Thanks in advance...
-Kennedy
------
KJR