Is there an options function similar to
form.getSelect(fId).options.remove( optIdx )
but rather selects the option?
I have an array of values that need to be checked (selected) in a multiselect control based on incoming values
var a = [ 'col1', 'col2' ];
{type: "multiselect", name: "mselect", label: "Columns:",
options: [ { text:'col1', value:'col1' }, { text:'col2', value:'col2' }, { text:'col3', value:'col3' } ] }
Given the above code, I need to select the col1 and col2 options. I would love to be able to say
form.getSelect().options.select( ‘col1’ );
Any input?