I'm running this sample script with IE:
var $select = $('#select');
var $button = $('#button');
$button.click(function() {
var $option = $('<option />');
$option.text('hello');
$option.appendTo($select);
});
var $tabs = $('#tabs');
$tabs.tabs();
It's pretty straight forward: when clicking on the button, an option
should be added to my dropdown. This works great - the basic fct in IE either.
My problem:
just "open" the dropDown, and "close" it again. Now switch to tab "button" and hit the button. Now switch to tab "select" - a new option
should be available.
This works great on every browser except IE ... (sometimes IE messes up after several tab-switches)
How can I fix my script?