// jQuery code with additional radio button class in the if statement
jQuery(document).ready(function($) {
// Attach a change event handler to .opbouw2 radio buttons
$(‘.opbouw2 input[type=”radio”]’).change(function() {
// Check if a radio button is selected
if ($(this).is(‘:checked’)) {
// Reset the radio button selection in .inbouw1, .inbouw2, and .opbouw1
$(‘.inbouw1 input[type=”radio”], .inbouw2 input[type=”radio”], .opbouw1 input[type=”radio”]’).prop(‘checked’, false);
}
});
// Attach a change event handler to .opbouw1 radio buttons
$(‘.opbouw1 input[type=”radio”]’).change(function() {
// Check if a radio button is selected
if ($(this).is(‘:checked’)) {
// Reset the radio button selection in .inbouw1, .inbouw2, and .opbouw2
$(‘.inbouw1 input[type=”radio”], .inbouw2 input[type=”radio”], .opbouw2 input[type=”radio”]’).prop(‘checked’, false);
}
});
// Attach a change event handler to .inbouw1 radio buttons
$(‘.inbouw1 input[type=”radio”]’).change(function() {
// Check if a radio button is selected
if ($(this).is(‘:checked’)) {
// Reset the radio button selection in .opbouw1, .opbouw2, and .inbouw2
$(‘.opbouw1 input[type=”radio”], .opbouw2 input[type=”radio”], .inbouw2 input[type=”radio”]’).prop(‘checked’, false);
}
});
// Attach a change event handler to .inbouw2 radio buttons
$(‘.inbouw2 input[type=”radio”]’).change(function() {
// Check if a radio button is selected
if ($(this).is(‘:checked’)) {
// Reset the radio button selection in .opbouw1, .opbouw2, and .inbouw1
$(‘.opbouw1 input[type=”radio”], .opbouw2 input[type=”radio”], .inbouw1 input[type=”radio”]’).prop(‘checked’, false);
}
});
// Attach a change event handler to #pvcopties radio buttons
$(‘#pvcopties input[type=”radio”]’).change(function() {
// Check if a radio button is selected
if ($(this).is(‘:checked’)) {
// Reset the radio button selection in #pcopties
$(‘#pcopties input[type=”radio”]’).prop(‘checked’, false);
}
});
// Attach a change event handler to #pcopties radio buttons
$(‘#pcopties input[type=”radio”]’).change(function() {
// Check if a radio button is selected
if ($(this).is(‘:checked’)) {
// Reset the radio button selection in #pvcopties
$(‘#pvcopties input[type=”radio”]’).prop(‘checked’, false);
}
});
});