I need a small suggestion, I am trying to replace the state drop down with a state text box when the country is not US
It does that logic, but when I submit the form the variable adminState doesnot hold the value of the state when it is submitted
When I do document.form.adminState.value, I get it as undefined
Please help me on this
But are you disabling the dropdown or just hiding it?
Seems to be as you declared dropdown and textbox with same name,at first its taking the dropdown value.
Try this steps
1) Remove dropdown and check whether you are able to get the "adminState" value of the textbox with "document.form.adminState.value".