Loading...
X

Making Chosen responsive

1 0

Chosen by default inits using a fixed width, so you need to use the gform_chosen_options hook to tell it to use a percentage based width instead. For example:
‚Äč

gform.addFilter('gform_chosen_options', 'set_chosen_options_js');
function set_chosen_options_js(options, element) {
options.width = '75%'; // set chosen width to use percentage based width
return options;
}

Leave Your Observation

Your email address will not be published. Required fields are marked *

Do NOT follow this link or you will be banned from the site!