I did mockups in balsamiq & they have this nice widget, which
- Allowed to select a value, out of two values. Works really nicely on touchscreens
- Can be used to Display two values & highlighting the selected one
Example:

What the options to implement a widget similar to shown in picture via HTML/CSS & JS?
The approach I present below iterates through all
fieldsetelements, and if all the inputs therein are oftype="radio", hides them and appendsspanelements (ofclass="buttonRadio") in their place, using the text from their relevantlabelelements. It also bindsclickevents to the appendedspanelements, and triggers thechangeevent on the originalinputs and also adds the 'checked' class-name to the clicked/touched element, while removing that class it from its siblings:This uses the following CSS to style those elements:
JS Fiddle demo.
Edited to amend the jQuery a little:
$(this)object a little earlier in this version,legendvariable that I assigned in the first incarnation but forgot to actually use...sigh.also hid the actual
<legend></legend>element:JS Fiddle demo.
References:
addClass().attr().click().css().each().eq().find().on().removeClass().siblings().text().trigger().