If you a web developer, maybe you encountered this annoying thing. Let’s say you need to write a list of choices, i.e. questions – answers. Let’s define that all the questions are optional and you can select just one answer per question. The way you should implement it, is using inputs with radio type, that’s fine and this how it should be.Example code is: But, as I said, the questions are optional. What’s happening now is when I check an option, I cannot uncheck it anymore! A problem. What is favorite time? Morning Noon Evening What is your preferable paying method? Credit Card Check Paypal Cash Here, I will show you how to solve this problem.There are two solutions to solve it, both involves JavaScript (and jQuery to ease the work): Convert all radio buttons to checkboxes: What is favorite time? Morning Noon Evening What is your preferable paying method?…

Read more

1/1