Tengo un desplegable "select" con diferentes opciones, y un observador definido con scriptaculous que cuando se cambia la opción del desplegable, se ejecuta.
lo he ocultado englobándolo dentro de un div "no-display" y me gustaría con javascript o scriptaculous cambiar la opción del desplegable y que se ejecutara el observador como si la hubiese cambiado con el mouse.
select.selectedIndex = 1;
#ejecutar el observador.
Código PHP:
   Product.Config = Class.create();
Product.Config.prototype = {
    initialize: function(config){
        this.config     = config;
        this.taxConfig  = this.config.taxConfig;
        this.settings   = $$('.super-attribute-select');
        this.state      = new Hash();
        this.priceTemplate = new Template(this.config.template);
        this.prices     = config.prices;
 
        this.settings.each(function(element){
            Event.observe(element, 'change', this.configure.bind(this))
        }.bind(this));
 
//aqui van mas cosas ... 
    Código PHP:
   <select class="required-entry super-attribute-select" id="attribute525" name="super_attribute[525]">
            
          <option value="">Choose an Option...</option>
<option value="100">Small</option>
<option value="99">Medium</option>
<option value="98">Large</option>
</select> 
    Gracias.
adiós.
 

