agcssautomotive.com
02-06-2007, 01:27 PM
Well, I have a form, which offers two radio buttons to search either osCommerce store or the site.
Long story short:
document.searchform.action= document.searchform.searchGroup1.value;
Gives "undefined" in the URL bar of IE.. Dont get confused here, the above code does nothing, Ill have if statements to handle action based on selection. But it didnt work, so this is how I debug it.
Why does the above code give undefined?
I was expecting "rb1_value" instead of "undefined".
Long story short:
document.searchform.action= document.searchform.searchGroup1.value;
Gives "undefined" in the URL bar of IE.. Dont get confused here, the above code does nothing, Ill have if statements to handle action based on selection. But it didnt work, so this is how I debug it.
Why does the above code give undefined?
I was expecting "rb1_value" instead of "undefined".