I need to change content of a dom element on select a option.
I tried to handel it like this:

<script type="text/javascript">

  document.observe("dom:loaded", function() {
    $('#englisch').onfocus = function() {
      $('div').replace('<p>This is English</p>');

<select name="select">
<option>Select Language</option>
<option id="englisch">Englisch</option>
<option id="german">German</option>

But nothing happens.
Can anyone help me out?

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to