0

I want hide and show custom message on radio button selection of shipping method on checkout page , but jQuery is not working in that section due to knockoutjs. Anyone have any idea for that how to implement custom jquery on shipping method selection?

here is my jquery code :

    <script type="text/javascript">
    require(["jquery"], function($) {
        jQuery(document).ready(function(){
   jQuery('.radio').click(function() {
    alert("selected shipping");
   });

        });
    });
</script>
3
<script type="text/javascript">
 require(["jquery"], function($) {
        $(document).ready(function(){
              $(document).on("click", '.radio', function () {
                  alert("selected shipping");
              });    
        });
    });
</script>

Try this...!

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.