How to get checkbox checked value in AlloyUI?

Devang Solanki picture Devang Solanki · Sep 2, 2014 · Viewed 8.8k times · Source

How to get Liferay AUI taglib checkbox checked value in AlloyUIi ?

<aui:input type="checkbox" ></aui:input>

Answer

Pankaj Kathiriya picture Pankaj Kathiriya · Sep 2, 2014

You can get checkbox's checked value by attr method like A.one("#id").attr('checked') where id will be element id of checkbox.