I have tho following problem with a form.
I have a select element and a text element.
The text element is an optional entry for the case when an option is not
available in the select element.
The roblem I have is that if the text element is filled with some text, I want the
select element value to be equaled to the text value before submission.
The way I am trying to do that is, in the input submit button, to put an onclick event
with "document.getElementById('select_id').value=document.getElementById('text_id').value"
But this doesnt work, so in submitting the value passed on the url conserves the old value for the select element.
Any help on that will be much appreciated.
I have a select element and a text element.
The text element is an optional entry for the case when an option is not
available in the select element.
The roblem I have is that if the text element is filled with some text, I want the
select element value to be equaled to the text value before submission.
The way I am trying to do that is, in the input submit button, to put an onclick event
with "document.getElementById('select_id').value=document.getElementById('text_id').value"
But this doesnt work, so in submitting the value passed on the url conserves the old value for the select element.
Any help on that will be much appreciated.
