Hello,
some months ago, someone someone wrote me a code (obviously not an expert) at checkout of my eshop, to choose between receipt or invoice with radio code. This never worked.
Can someone help me to find the mistakes and correct it? Im not an expert so please explain with details.
Here is the code:
$(document).ready(function() {
if ( $('#elm_1_2').is(':checked')) {
$(".billing-company").show();
$(".billing-job").show();
$(".billing-afm").show();
$(".billing-doy").show();
} else {
$(".billing-company").hide();
$(".billing-job").hide();
$(".billing-afm").hide();
$(".billing-doy").hide();
}
$("input[name='user_data[fields][1]']").click(function(){
var test = $(this).val();
if (test=='1') {
$(".billing-company").hide();
$(".billing-job").hide();
$(".billing-afm").hide();
$(".billing-doy").hide();
} else {
$(".billing-company").show();
$(".billing-job").show();
$(".billing-afm").show();
$(".billing-doy").show();
}
});
});
and that is the website pc-evolution.gr