associate a hidden input to (chosen) select option in form?



<form action="http://www.mmmm.org/cgi-bin/search"; method="get">
<input name="yyyyyy" value="1" type="hidden">
<input name="query" size="50" value="">
<select name="zzzzzz">
<option value="888">YOU-WANT-THIS</option>
<option value="899" selected="selected">OR-KEEP-THIS</option>
<option value="999">OR-CHOOSE-THIS</option>
</select>
</form>

i'd like
to convert input name="yyyyyy" to a select name="yyyyyyy" (or whatever that can have
more than one value assigned) that is
1 also chosen when user chooses the select name="zzzzzz" option.
2 still hidden (this isn't terribly important, though)

so this
<input name="yyyyyy" value="1" type="hidden">

would instead look something like
<select name="yyyyyy">
<option value="1">1 but you can't see this</option>
<option value="2">2 but you can't see this</option>
<option value="3">3 but you can't see this</option>
</select>

except it would actually look like whatever would work :-)

unless this is impossible? or possible only with script?

------
googling the likes of
http://groups.google.com/groups?q=select+name+options+%7Etied+form+html
associated multiple two-options
gave optgroup or less likely answers

tia...
.



Relevant Pages

  • Does using index.php affect search engine rankings?
    ... Apologies if this is the wrong group ... TIA ... Dynamo ... Prev by Date: ...
    (comp.lang.php)
  • Re: Stop a service programatically
    ... > Any thoughts/help? ... > TIA - Jeff. ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • Search Problem
    ... I just need a way to line by line search the entire file, fetching that ... making some modifications and moving further. ... TIA ... Prev by Date: ...
    (comp.unix.shell)
  • Calculating Differences Uniformly
    ... makes me, well, get pretty negative, lol ... TIA! ... tx12345's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24776 ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: DataColum.DefaultValue
    ... which is why the DefaultValue property returns true. ... >I am trying to get a vale of a column. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)