Reply To: add classes

Home Forums Quform WordPress add classes Reply To: add classes

#31037
artsolving
Participant

tnx,
however I don’t find a source for a radio button.

with this CSS

.montserrat-font{
font-family: “Montserrat”, sans serif;
}

.roboto-font{
font-family: “Roboto”, sans serif;
}

.opensans-font{
font-family: “Open Sans”, sans serif;
}

.raleway-font{
font-family: “Raleway”, sans serif;
}

and this script:

jQuery(function ($) {

$(‘.quform-field-14_5358’).on(‘click’, function () {

if ($(‘.quform-field-14_5358_1’).is(‘:checked’)) {
$(‘#texthead2col’).addClass(‘montserrat-font’);
} else {
$(‘#texthead2col’).removeClass(‘montserrat-font’);
}

if ($(‘.quform-field-14_5358_2’).is(‘:checked’)) {
$(‘#texthead2col’).addClass(‘roboto-font’);
} else {
$(‘#texthead2col’).removeClass(‘roboto-font’);
}

if ($(‘.quform-field-14_5358_3’).is(‘:checked’)) {
$(‘#texthead2col’).addClass(‘opensans-font’);
} else {
$(‘#texthead2col’).removeClass(‘opensans-font’);
}

if ($(‘.quform-field-14_5358_4’).is(‘:checked’)) {
$(‘#texthead2col’).addClass(‘raleway-font’);
} else {
$(‘#texthead2col’).removeClass(‘raleway-font’);
}

});

});

no result.

suggestions ?

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