Hi Marko,

This should do it, I believe:
-----------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<!-- TODO: Obviously, change this if you're using a different encoding
-->
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>Test Page</title>
<script type='text/javascript' src='prototype.js'></script>
<script type='text/javascript'>
document.observe('dom:loaded', function() {

        // TODO: Delete this and the button below if you don't need them
        // for what you're trying to replicate
        orderOptions = $('orderOption[test.com]');

        orderOptions.observe('change', function(event) {
                alert('Combobox selected: ' + orderOptions.identify());

                alert('Current value for the combo is ' + 
orderOptions.getValue());

                alert('Selected Item: ' + orderOptions.down('[value="' +
orderOptions.getValue() + '"]'));
        }
});




</script>
</head>
<body><div>

<select id="orderOption[test.com]" domain="test.com" name="orderOption
[qsfqsfqsf.cn]">
<option value="N100005" domain="test.com" prepaid_total="20.20 EUR"
postpaid_total="25.25 EUR">Registreer voor 1 Jaar</option>
<option value="N100006" domain="test.com" prepaid_total="39.60 EUR"
postpaid_total="49.50 EUR">Registreer voor 2 Jaar</option>
<option value="N100009" domain="test.com" prepaid_total="58.20 EUR"
postpaid_total="72.75 EUR">Registreer voor 3 Jaar</option>
<option value="N100007" domain="test.com" prepaid_total="95.00 EUR"
postpaid_total="118.75 EUR">Registreer voor 5 Jaar</option>
<option value="N100008" domain="test.com" prepaid_total="186.50 EUR"
postpaid_total="233.00 EUR">Registreer voor 10 Jaar</option>
</select>


</div></body>
</html>

-----------------------------------------------

Just change the combo...

--~--~---------~--~----~------------~-------~--~----~
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-scriptaculous@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