• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

Select a radio / checkbox in JS

  • Views Views: 11,524
  • Last updated Last updated:
  • // 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

    if(inputs[0].checked){
    alert('the first input is checked')
    } else {
    alert('the first input in not checked');
    }
Back
Top