Open Source Javascript UI Library maintained by SAP

OpenUI5 is an Open Source JavaScript UI library, maintained by SAP and available under the Apache 2.0 license. UI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice. It’s based on JavaScript, using JQuery as its foundation and follows web standards. It eases your development with a client-side HTML5 rendering library including a rich set of controls and supports data binding to different models (JSON, XML and OData).

Homepage

Software Development Kit

jQuery – Checking/Unchecking Radio Buttons

 

I recently had the need to check a certain Radio Button in a Radio Button Group. What I found out was pretty cool. With jQuery you can select the Radio Button Group by name an then select a single Button by it’s value.

Let’s say you have a form containing something like following:



 

and you want to

Check a Single Radio Button in the Group

$(„input[name=radioButtons][value=’yep‘]“).prop(„checked“,true);

 

Uncheck all Radio Buttons in the Group

$(„input[name=radioButtons]“).removeAttr(„checked“);

 

Pretty easy, isn’t it?