stormy Posted January 19, 2018 Share Posted January 19, 2018 I'm looking for a way to get a text to appear when clicking the radio button for the bank transfer gateway, and then be hidden again when clicking another radio button. I know it can be done with jquery, but I wonder if there's something already built-in that I can use. If not, can someone give me some hints for the jquery function? Link to comment Share on other sites More sharing options...
Neutrall Posted January 25, 2018 Share Posted January 25, 2018 I don't think there a way in WHMCS to do so, but here an Javascript example: // Get the value of the current selected payment method var CurrPaymentMethod = $ ( "input[name='paymentmethod']:checked" ).val(); // Action to do for method X (in this case, PayPal) if (CurrPaymentMethod == "paypal") { // Display a div already in your template $ ( "#CustomMessageDiv" ).show(); // Place text on an existing div $ ( "#CustomMessageDiv" ).html('My custom text'); } Hope this help! Link to comment Share on other sites More sharing options...
stormy Posted January 25, 2018 Author Share Posted January 25, 2018 Thanks! Unfortunately, there's some stuff overlaid on top of the radio buttons that doesn't let this work... Link to comment Share on other sites More sharing options...
Recommended Posts