I have this input element:
<input type='text' name='street' maxlength='20' size='20'>
that I only want the user to be able to input to based on a item from a
select list:
<select name='street_se l' size='1' onchange='ck_st reet();'>
<option value='abc'>abc </option>
<option value='def'>abc </option>
<option value='unk'>str eet not in list</option>
</select>
When the user change the item from the select list then the select value
text gets loaded to the input item.
If the item is not in the select list, then selecting "street not in list"
should enable the input element.
When I talk about enabling the input element I mean either changing the:
type from 'hidden' to 'text' or
changing the readonly='false ' to readonly='true' or
changing dispaly='none' to display='block'
None of these seem "enabling" ideas seem to work. Anyone know what I am
missing or is ther another option?
I'd like to limit the streets the user selects to the list, but I know there
are other possibilities and so the user should be able to enter these other
ones.
Any help is appreciated.
Mike
<input type='text' name='street' maxlength='20' size='20'>
that I only want the user to be able to input to based on a item from a
select list:
<select name='street_se l' size='1' onchange='ck_st reet();'>
<option value='abc'>abc </option>
<option value='def'>abc </option>
<option value='unk'>str eet not in list</option>
</select>
When the user change the item from the select list then the select value
text gets loaded to the input item.
If the item is not in the select list, then selecting "street not in list"
should enable the input element.
When I talk about enabling the input element I mean either changing the:
type from 'hidden' to 'text' or
changing the readonly='false ' to readonly='true' or
changing dispaly='none' to display='block'
None of these seem "enabling" ideas seem to work. Anyone know what I am
missing or is ther another option?
I'd like to limit the streets the user selects to the list, but I know there
are other possibilities and so the user should be able to enter these other
ones.
Any help is appreciated.
Mike
Comment