This fancySelect that Lorenzo did has a option for legacyEvents
.
Turning that on fixes your problem.
Try this:
var $i = document.id;
$i('fruits').fancySelect({legacyEvents: true}); // note here i added {legacyEvents: true}
$i('fruits').addEvent('change', function () {
alert(this.get('value'));
});
Demo
Note: Don't do var $$=document.id;
you are overriding a mootools method which is $$
. You can do $i
istead.