|
List Info
Thread: radio button / drop down menu
|
|
| radio button / drop down menu |
  United States |
2007-10-12 11:50:08 |
Can anyone help?
Lets say you have a group of radio buttons with values of A,
B, and C
I want to have a drop down box, on the same page that the
values are
changed by which radio button is selected
so if radio value A is selected then the drop down will have
values of
f1, x2, i3
if radio value B is selected then drop down will have values
m1,r4,
g3
and so on and so forth.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: radio button / drop down menu |
  United States |
2007-10-12 13:08:06 |
Hi,
See if this is what you're looking for. I uploaded a quick
example.
http://javascript-information.
googlegroups.com/web/filterSelect_byRadioButton.html
Israel
On Oct 12, 12:50 pm, HhAaZzEeYy <JoshVr... gmail.com> wrote:
> Can anyone help?
> Lets say you have a group of radio buttons with values
of A, B, and C
> I want to have a drop down box, on the same page that
the values are
> changed by which radio button is selected
> so if radio value A is selected then the drop down will
have values of
> f1, x2, i3
> if radio value B is selected then drop down will have
values m1,r4,
> g3
> and so on and so forth.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: radio button / drop down menu |
  United States |
2007-10-12 21:22:13 |
On Oct 12, 2:08 pm, Israel Schulman <israel.schul... gmail.com> wrote:
> Hi,
>
> See if this is what you're looking for. I uploaded a
quick example.
>
> http://javascript-information.googlegrou
ps.com/web/filterSelect_byRad...
That works but the eval is unnecessary and
"evil"[1]. Instead of:
eval("document.form1.select1.options[amount]=" +
"new Option('" +
itemArray[i].category + "','" +
itemArray[i].category + "')")
try:
document.form1.select1.options[amount] = new
Option(itemArray[i].category);
[1] [url:htt
p://www.google.com/search?q=%22eval+is+evil%22]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: radio button / drop down menu |
  United States |
2007-10-13 00:35:30 |
Good point.
On Oct 12, 10:22 pm, Jambalaya <chris.ak... gmail.com> wrote:
> On Oct 12, 2:08 pm, Israel Schulman
<israel.schul... gmail.com> wrote:
>
> > Hi,
>
> > See if this is what you're looking for. I uploaded
a quick example.
>
> >http://javascript-information.googlegrou
ps.com/web/filterSelect_byRad...
>
> That works but the eval is unnecessary and
"evil"[1]. Instead of:
>
>
eval("document.form1.select1.options[amount]=" +
"new Option('" +
> itemArray[i].category + "','" +
itemArray[i].category + "')")
>
> try:
>
> document.form1.select1.options[amount] = new
> Option(itemArray[i].category);
>
> [1] [url:htt
p://www.google.com/search?q=%22eval+is+evil%22]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|