Passing two variables to a javascript function
Posted: Sun Sep 26, 2010 6:52 pm
If I'm not phrasing this correctly so please forgive me
I have a drop down list on my form that when I make a selection it calls a function and passes the value to it, everything works fine and it does exactly what I want it to do.
What I would like to add though is a radio button group that has another set of values in it (such as - active, inactive, for sale). I want the user to be able to select one of those options and then when the drop down list is selected have both values passed to the function so my select statement can use both.
I'm familiar with creating a multiple _GET, and I understand that I can add the first variable as parameter in the function but how do I get the program to read the value of the radio button group?
If someone could please point me to some examples of such a thing, I'd greatly appreciate it.
Thank you
I have a drop down list on my form that when I make a selection it calls a function and passes the value to it, everything works fine and it does exactly what I want it to do.
What I would like to add though is a radio button group that has another set of values in it (such as - active, inactive, for sale). I want the user to be able to select one of those options and then when the drop down list is selected have both values passed to the function so my select statement can use both.
I'm familiar with creating a multiple _GET, and I understand that I can add the first variable as parameter in the function but how do I get the program to read the value of the radio button group?
If someone could please point me to some examples of such a thing, I'd greatly appreciate it.
Thank you