...

View Full Version : JavaScript Drop Down List HELP!



llckll
03-16-2012, 08:16 PM
Hi All,

I am really stumped. I am not sure why it's not working.

Basically, selecting a country will pre-populate the state field for both billing and shipping sections. Please help!

Also, when copying the billing info from shipping, the state field doesn't seem to copy over.

I have attached the entire code as a text file (part1 + part2 = complete code).

Thanks!

:confused:

sunfighter
03-17-2012, 07:05 PM
In function changeShippingStates()

Make these types of changes:


document.myform.Shipping_State.options[document.myform.Shipping_State.options.length] = new Option('Alabama','AB');
document.myform.Shipping_State.options[document.myform.Shipping_State.options.length] = new Option('Alaska','AK');
document.myform.Shipping_State.options[document.myform.Shipping_State.options.length] = new Option('Arizona','AZ');
document.myform.Shipping_State.options[document.myform.Shipping_State.options.length] = new Option('Arkansas','AR');
document.myform.Shipping_State.options[document.myform.Shipping_State.options.length] = new Option('California','CA');
document.myform.Shipping_State.options[document.myform.Shipping_State.options.length] = new Option('Colorado','CO');



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum