1. If you update to Joomla 3.8.10, please make sure that you either do a full GitHub update of Fabrik, or disable caching for your lists (in the Advanced settings) or turn off Joomla's System Cache setting. A change in Joomla's cache code in 3.8.10 required a fix in Fabrik, which will be rolled in to the next release, but is currently only available in GitHub.

Select a radio / checkbox in JS

Aug 5, 2013
Select a radio / checkbox in JS
  • Code (Javascript):
    // get the div that contains the checkboxes
    // this div is the element which uses the elemnent's full name as its id.
    var div = $('tablename___elementname');
    //get its checkboxes
    var inputs = div.getElements('input[type=checkbox]');
    //or to get radiobuttons
    var inputs = div.getElements('input[type=radio]');
    //access a specific input and see if its checked or not
        alert('the first input is checked')
    } else {
        alert('the first input in not checked');