// Get all elements with class .radio-wrapper
const radioWrappers = document.querySelectorAll('.radio-wrapper');
// Attach a click event listener to each radio wrapper
radioWrappers.forEach(radioWrapper => {
radioWrapper.addEventListener('click', () => {
// Get the child radio input element
const radioInput = radioWrapper.querySelector('input[type="radio"]');
// Trigger a click event on the radio input element
if (radioInput) {
radioInput.click();
}
});
});
⚡️ Custom CSS
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.