Hey,

I make the following AJAX Request to a page:

Code:
    function search() {
        $.ajax({ type: "GET",
            url: "ajaxBatchAllocate.asp",
            data: { "SearchStr": $("#SearchStr").val(),
                "AgentID": $("#AgentID").val()
            },
            dataType: "xml",
            success: function (xml) {
                $("#AvailableTourCodes").html("");
                $(xml).find("Tour").each(function () {
                    $("#AvailableTourCodes").append("<option name=\"TourID\" value=" + $(this).attr("TourID") + ">" + $(this).text() + "</option>");
                });
            },
            error: function (t) {
                $("#AvailableTourCodes").html("");
            }
        });
    }
I am referring to this line:

Code:
$("#AvailableTourCodes").append("<option name=\"TourID\" value=" + $(this).attr("TourID") + ">" + $(this).text() + "</option>");
                });
Basically is populates a <select> but some of the <option> have duplicate records, so typically the results may be like so:

<option value="91978">1 CHLIB0211*</option>
<option value="91979">1 CHLIB0211*</option>
<option value="91990">1 CHLIB0211*</option>
<option value="91983">1 PEPPM0311*</option>
<option value="91985>1 PEPPM0311*</option>
<option value="88692">4RIA1111</option>
What i need to do is remove the duplicates so show he results like this:


<option value="91978">1 CHLIB0211*</option>
<option value="91983">1 PEPPM0311*</option>
<option value="88692">4RIA1111</option>
The value can be ignored, as i know they are not unique. But the main thing i need to do is simply remove the duplicate names to achieve the above.

Is this possible?

Thanks,