Low level jQuery wrapper for re-building a set of HTML option elements from the supplied optionData object.
Only options contained within the groups specified will be included. The groupNames are supplied as a string containing comma separated list of names.
When designing forms you should use .filterOptions instead. This function is used in the form runtime itself.
Executed
Client-side only.
Arguments
Argument | Type | Description |
---|---|---|
inputID | String, required | The input ID |
optionData | Object, required | The option data containing the grouped options you'd like to filter |
groupNames | String, required | The groups of data you'd like to get from the optionData |
Returns
An object of filtered option data.
Last modified on March 09, 2020