My html code
<select name="test[]" id="test_0">
<option value="">...</option>
<option value="Test 1">Test 1</option>
<option value="Test 2">Test 2</option>
<option value="Test 3">Test 3</option>
</select>
<select name="test[]" id="test_1">
<option value="">...</option>
<option value="Test 1">Test 1</option>
<option value="Test 2">Test 2</option>
<option value="Test 3">Test 3</option>
</select>
My jquery code
$("#test_0 option:eq(1)").remove();
$("#test_1 option:eq(2)").remove();
If I remove an item, how can I keep it in memory to replace it later at the same place ?
Thanks for your help…
Chris
You could hide it:
But im not sure it works on all browsers. Otherwise you could clone it and save it in a variable and then remove it: