Change event on <select>

Posted by adivasile on Stack Overflow See other posts from Stack Overflow or by adivasile
Published on 2010-03-17T09:03:46Z Indexed on 2010/03/17 9:11 UTC
Read the original article Hit count: 361

If i attach a change event listener on a<select> how do i acces the option that was selected (not just the value, the actual element).

$('select').addEvent('change',function(event) {
    //??
});

Note: i'm using Mootools

© Stack Overflow or respective owner

Related posts about javascript-events

Related posts about change