how to add onchange javascript event to select field

know if there is a way to know the id or the customer has selected??

this will give you the selected text if you want it. you can probably figure out what you need from this example.

var grain = $(‘select#id_of_my_element option:selected’).text();