Reply To: add classes

Home Forums Quform WordPress add classes Reply To: add classes

#31197
artsolving
Participant

hi ally,
sorry but the problem remain with radio button not only with fonts but also other styles.

example:

CSS:

.normal {
font-size: 14px;
color: black;
}

.medium {
font-size: 16px;
color: black;
}

.large {
font-size: 24px;
color: black;
}

JS:

jQuery(function ($) {

$(‘.quform-field-14_6436’).on(‘change’, function () {

if ($(‘.quform-field-14_6436_1’).is(‘:checked’)) {
$(‘#dida1col, #dida2col, #dida3col’).addClass(‘normal’);
} else {
$(‘#dida1col, #dida2col, #dida3col’).removeClass(‘normal’);
}

if ($(‘.quform-field-14_6436_2’).is(‘:checked’)) {
$(‘#dida1col, #dida2col, #dida3col’).addClass(‘medium’);
} else {
$(‘#dida1col, #dida2col, #dida3col’).removeClass(‘medium’);
}

if ($(‘.quform-field-14_6436_3’).is(‘:checked’)) {
$(‘#dida1col, #dida2col, #dida3col’).addClass(‘large’);
} else {
$(‘#dida1col, #dida2col, #dida3col’).removeClass(‘large’);
}

});

});

Inspector says they take classes but on live quform fields don’t works how classes declare.

maybe a bug on me ?
working with Quform last version + WP 5.4.1 + Avada theme

tnx

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy