I have a shopping cart that I am having a few problems with. I am
mostly a flash developer with basic if not little javascript knowledge,
I need for my checkout to have a checkbox that if clicked on will
populate my shipping addresses with my billing addresses, I have this
somewhat working with a code I got off of here thats like this
<script>
function copy(checked, source, target) {
if (checked) {
target.value = source.value
} else {
target.value = '';
}
}
</script>
//then like this in the form
<input type=checkbox onClick="copy(this.checked, this.form.bname,
this.form.sname)">
but the problem with that is that I have to put a checkbox with its own
code on each part of the form. I would like to have one that would
then populate the whole form. The other question I have is I need to
have a validate script from the form, the fields are
Name-text
address-text
city-text
state-select
zip-text
country-selected US
Phone-text
email-text
credit card number-text- just need it to check if its numbers and over
12
Any help is greatly appreciated, thanks in advance