Toggle menu

helper.utilGetCheckedInputValue(inputID)

Low level jQuery wrapper for obtaining the current value of an HTML element that can be checked, for example a checkbox or a radio button.

The value is returned as an array of strings.

Executed

Client-side only.

Arguments

ArgumentTypeDescription
inputIDString, requiredThe ID of the input element you'd like to get the value of. The ID is generally the name of the form then the name of the field, separated by an underscore

Example

function (helper) {
    var value = helper.utilGetCheckedInputValue('GETCHECKEDINPUTVALUE_CHECKBOXGROUP');
    return value;
}

Returns

[ "1", "2" ]

Last modified on March 06, 2020

Share this page

Facebook icon Twitter icon email icon

Print

print icon