$("select[name=id9]").change(function () {
abc = $(this).val();
$("#display div").prepend("motif" + abc + ".gif");
});
This gives a result like this:
motif120.gif
which is based on this selector;
<select name="id9">
<option value="136">None</option>
<option value="120">Football</option>
<option value="121">Rugby</option>
<option value="122">Cricket</option>
</select>
Which works just fine. But when the person then chooses another option, I need the original option to be removed. At the moment it's doing this (which it should do as that's what I'm asking it to do);
motif120.gifmotif136.gifmotif121.gif
assuming they chose football, then none, then rugby
This has to be simple, but I am braindead today.
Thaank you in advance!