• Resolved mariefrossard

    (@mariefrossard)


    Hello everybody,
    I’m looking to make a condition for displaying a DOM element with radio buttons on a list named an array. At first it doesn’t work.
    FYI it’s in woocommerce orders.
    Any idea to circumvent the pb?
    Thank you

    jQuery(document).ready(function( $ ){
      $("input[type=radio][name=shipping_method[0]]").change(function() {
        if($(this).val() == 'click&collect') {
          $( "#bloc" ).removeClass( "none" ).addClass( "view" );
        }else  { 
          $( "#bloc" ).removeClass( "view" ).addClass( "none" );
        }
      });
     });
    • This topic was modified 2 years, 3 months ago by mariefrossard.
  • The topic ‘block display condition based on the radio button selected on the command page.’ is closed to new replies.