Reply To: Field Variables: radio input

Home Forums Quform WordPress Field Variables: radio input Reply To: Field Variables: radio input

#31054
DUALWERK
Participant

I found a solution:

    
$('.quform-field-2_28').change(function() {
        $('#mitarbeiter').text($(this).filter(':checked').val());
});

This does only work if there is no pre-selected option. To solve this you could do something likes this:


var rVal = $('.quform-field-2_28').filter(':checked').val();  
$('.quform-field-2_28').change(function() {
        rVal = $(this).filter(':checked').val();
        $('#mitarbeiter').text(rVal);
});
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy