Hi Amic,
you have to change your code a little bit.
Firstly as @jakecigar said addEvent isn't jQuery. You can use "change".
If your select input is with name "categoria" you have to use different selector.
Here is JavaScript code which may help you:
JavaScript
$('#categoria').change(function (e) {
var selected = $(this).children(':selected').text();
if (selected === 'First') {
alert('First');
} else if (selected === 'Second') {
alert('Second');
} else if (selected === 'Third') {
alert('Third');
}
});
HTML
<select id="categoria">
<option>First</option>
<option>Second</option>
<option>Third</option>
</select>
Here I'm selecting by id, so I'm using '#categoria' as selector.
If the selection variable is already defined check if it's a global or something (despite your redefining it).
I hope that helped.
Best regards,
Minko.