• I am trying to style the radio buttons with css using an input[checked]:after technique, but the attribute ‘checked’ does not change on the radio button inputs when selecting the options. Any idea why?

Viewing 1 replies (of 1 total)
  • Thread Starter MikeBav

    (@mikebav)

    I resolved this with jQuery:

    jQuery(document).ready(function($){
    $('.variations input[type=radio]').on('click', function() {
    $('.variations input[type=radio]').attr('checked',false);
    $(this).attr('checked',true);
    });
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Styling – input attribute ‘checked’ not changing on selection’ is closed to new replies.