So I have a checkout page with multiple packages. I have a couple radio buttons that if one is clicked, then I want the same value to be clicked on the other packages.
In my page, I have a radio button selection called “Van Delivery”. When that is clicked on one of the packages, I want all the other packages to be forced to select the “Van Delivery” button next to them too.
So I have this one:
input id=“shipping_method_0_local_pickup51” class=“shipping_method” type=“radio” name=“shipping_method[0]” data-index=“0” value=“local_pickup:51” checked=“checked”>
label for=“shipping_method_0_local_pickup51”>Van Delivery </label
And this one:
input id=“shipping_method_1_local_pickup51” class=“shipping_method” type=“radio” name=“shipping_method[1]” data-index=“1” value=“local_pickup:51” checked=“checked”>
label for=“shipping_method_1_local_pickup51”>Van Delivery</label
I’m guessing I need to say something like “If input shipping_method_0_local_pickup51 = checked then input shipping_method_1_local_pickup51 = checked”
I have no idea how to properly format that into a working php code though.
Any help is appreciated! Obviously, I am a noob. I’m just happy that basic knowledge and Wordpress has enabled me to get this far! LOL!