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
Argument | Type | Description |
---|---|---|
inputID | String, required | The 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 6 March 2020