function doCopy(){ if($('#same').is(':checked')) { $("#billing_first_name").attr("value", $('#shiping_first_name').val());
} else { $("#billing_first_name").attr("value",""); } } > I have another question related to this. How can I clear the fields if I > uncheck the checkbox? I mean when marked fill fields as I do until now and > when unmarked empty those fields? How can I check when the checkbox is > checked or not? > Cheers > -- > ReynierPM >