This HTML is completely working in Chrome, but not in IE.
The file is very simple with only two functions:
Click the add button, and the first row will be cloned and place to before of the add button.
Click the combo box and the second option will be deleted.
Now the problem is function 2:
In IE, load this page, and click the add button to add some combo box.
Click the first combo box, and you will not see the second option in the combo box. (This is correct result.)
Click the second combo box or other cloned combo box, and then you will see the second option still in the combo box, so it is not removed. (This is not correct result.)
If you see the source in developer tool, you can see the second option is removed.
So, how to remove the option in IE?
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
jQuery(document).ready
(
function()
{
$('#add').click(function(){
$(this).parent().parent().before($('tr').eq(0).clone(true));
});
$('select').focus(function(){
$(this).find('option').eq(1).remove();
});
}
);
</script>
</head>
<body>
<table>
<tr>
<td>
<select>
<option>1</option><option>2</option><option>3</option>
</select>
</td>
</tr>
<tr>
<td><input id="add" type="button" value="add"/></td>
</tr>
</table>
</body>
</html>