Why is my custom radio button code causing a cart error?

Hi,

I have added a custom code for the radio button on the cart page.

I am getting an error on the cart page while updating the cart.

The code I have used is:

Need a Complimentary Tote Bag
Yes
No

Can you please help?

Thanks,

Sabeen.

it could be helpful to check for any errors or conflicts in the browser console, as these could provide clues as to what is causing the issue with the cart not updating.

Hi,

Thanks for replying.

I have checked the console and it is showing me the below warning.