vendredi 9 juin 2017

jQuery - hide label & radio after checkbox is checked

this is my first post. Hope i can get help.

I need to hide a label & radio button after a checkbox was checked a page before. I need this to hide a radio button in a order process. The problem is that the checkbox and the label&radio are not at the same page.

This is my checkbox:

<input id="coupon" class="checkbox" name="coupon" value="yes" type="checkbox">

And this are the two elements I want to hide at the next page:

<input id="payment_paypal_1" class="radio" name="payment_paypal" value="2" required="" type="radio">
<label id="payment_paypal_2" for="payment_paypal">PayPal</label>

Thank you all in advance!




Aucun commentaire:

Enregistrer un commentaire