atom feed3 messages in com.googlegroups.prototype-corechange DOM on select option
FromSent OnAttachments
clic...@googlemail.comAug 27, 2009 5:01 am 
T.J. CrowderAug 27, 2009 5:36 am 
T.J. CrowderAug 27, 2009 6:55 am 
Subject:change DOM on select option
From:clic...@googlemail.com ("cli@googlemail.com)
Date:Aug 27, 2009 5:01:29 am
List:com.googlegroups.prototype-core

Hello,

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>'); } }); </script>

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

But nothing happens. Can anyone help me out?