1

I want to add "active" class on shipping method selection.
Means If I change shipping method then "active" class automatically added to newly selected shipping method and removed from the old selection.

Please see attached image. enter image description here

I want to use knockout js and I am new to knockout js. Please help me.

Regards

Hiren Shah

0

Try this code in your custom js or phtml file:

require(['jquery'],function($){
   $(document).on("click", '{RdioButtonClassOrId}', function() {
        $(this).addClass('active');
    });
});

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.