This version is old school.
Please find jQuery plugins on npm.
Radio
by P'unk Avenue
Radio lets you get and set the current value of a group of radio buttons, filling a gap in jQuery's $.val. It is not a replacement for radio buttons. It just makes working with them more pleasant.