Thank you that works but what I am looking to do is: when a customer fills out his billing address then checks a box the shipping address populates automatically (with the billing info that the customer has already filled out). And, also, is there any way I can incorporate that to my code above?
when a customer fills out his billing address then checks a box the shipping address populates automatically (with the billing info that the customer has already filled out).
You didn't say that in the OP, you talked about copying from drop-down lists. Anyway, I'm not going to incorporate anything into the code you've supplied because I don't know how it's interacting with the rest of your file, but here's an example demonstrating what you've asked for:
Thank you that works but what I am looking to do is: when a customer fills out his billing address then checks a box the shipping address populates automatically (with the billing info that the customer has already filled out). And, also, is there any way I can incorporate that to my code above?
Do you mean that you want to copy the selection from one <select> to another, which is already populated with identical options?
Where used, return should be executed unconditionally and always as the last statement in the function.
That's my signature, it's not part of the damn post!
Thank you so much George88, I am sorry I wasn't clear on my first post. One more question, how would I go about the drop down select list? That's the part I am having trouble with. If a customer lets say selects: US (for the state in the billing info) then how do I copy that in the shipping info?
Bookmarks