block display condition based on the radio button selected on the command page.
-
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 youjQuery(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" ); } }); });
- The topic ‘block display condition based on the radio button selected on the command page.’ is closed to new replies.