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.


Hiren Shah

1 Answer 1


Try this code in your custom js or phtml file:

   $(document).on("click", '{RdioButtonClassOrId}', function() {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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