Adding a menu, and triggering an event on it

Adding a menu, and triggering an event on it

I wish to dynamically add a menu, and then trigger an event when the menu changes.

Can anyone tell me why the following doesn't work?

$("#mySelect").change(function() {alert('#mySelectchanged');});

$("#myID").html('<select id="mySelect"><option>one</option><option>two</option><option>three</option></select>);

Thank you