Hi,

I have simple select box

<select id="myCars">
  <option value="volvo">Volvo</option>
  <option value="audi">Audi</option>
</select>

and my Javascript

$('myCars').observe('change', doSomething);

function doSomething(){
  alert('doSomething');
}

In My code I want to programatically select "audi"... for which i do

$('myCars').value="audi";     // also tried other options like making
options selection true

This changes the selection in UI but doesn't trigger the onChange
event.
How can I fire the on change event programatically.

Thanks and Regards
Hari

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to