I would like to see this explained better. Where do I put the following code within the header.php? I do not have an url to show, as I am in the beginning stages of this form. I want to list a billing and shipping address, with a checkbox to autofill the shipping if it is the same as billing. Thanks
jQuery(document).ready(function($) {
$('input#choice_13_1').click(function() {
if($(this).is(':checked')) {
$('#input_2_12_1').val($('#input_2_2_1').val());
$('#input_2_12_2').val($('#input_2_2_2').val());
$('#input_2_12_3').val($('#input_2_2_3').val());
$('#input_2_12_4').val($('#input_2_2_4').val());
$('#input_2_12_5').val($('#input_2_2_5').val());
};
});
});
Posted 11 years ago on Monday June 24, 2013 |
Permalink