I am firing a click event to refresh the options of a select box when it is clicked. It works fine in FF/Chrome, but in IE I get some strange behavior. When clicked, the select box opens and closes quickly.

Here is a sample of the code

```
$(document).ready( function() {

   $(".mySelect").click( function() {
     updateOptions();
   });

});

function updateOptions() {
    var myNewOptions = "<option value='1'>Foo</option>";
    $(".mySelect").empty().append(myNewOptions);
}

<select class="mySelect"></select>

```