Really great !!!
Now it works simply with:
this.select.selectedIndex =
this.select.getElement('[value='+this.selection+']').index;
Note: I did change the 'value' snippet for using diferent searching
values, like this:
'[value='+this.selection+']'
Regards: framontb
On 10 Dec, 20:33, Sanford Whiteman <[email protected]>
wrote:
> > Are there an easy way to select the option by means of the value
> > stated in the option tag?
>
> Yes. Grab the DOM element by the markup `value` attribute, then set
> the selectedIndex = that DOM element's `index` property.
>
> http://jsfiddle.net/Vbrbb/4/
>
> -- S.