Removing the Duplicates in the drop down
<p>I got values from a csv file and those values I have placed in respective dropdowns. The issues is that in csv file I have duplicate entries so the same duplicate entries are in the drop down. I need to remove the duplicates. code for placing in to drop down i am not using select option code  i am using <code>"$("#checkboxes").append("&lt;input type='checkbox' class ='chk'   name='locationthemes' onclick='pandu();' value ="+cells[0]+"&gt; " +cells[0] + " &lt;/input&gt;&lt;br&gt;");"</code></p>

<p>code for getting the values from csv file:</p>

<pre><code>var list=[];
var region =[];
var state=[];
var state1=[];
var accname=[];
$(document).ready(function() {
 // AJAX in the data file
    $.ajax({
        type: "GET",
        url: "data.csv",
        dataType: "text",
        success: function(data) {processData(data);}
        });

    // Let's process the data from the data file
    function processData(data) {
        var table = $("&lt;table /&gt;");
                   var rows = data.split(/\r\n|\n/);
                    for (var i = 1; i &lt; rows.length-1; i++) {


                        var row = $("&lt;tr /&gt;");
                        cells = rows[i].split(/,(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/);
                        list.push(cells)
                        var newvalue=cells[1].replace("\"", ""); 
                        var pandu=cells[0];

                       // var panduuu=jQuery.unique(cells[0]);
                        //alert("panduuu::"+panduuu)

                            $("#checkboxes").append("&lt;input type='checkbox' class ='chk'   name='locationthemes' onclick='pandu();' value ="+cells[0]+"&gt; " +cells[0] + " &lt;/input&gt;&lt;br&gt;");                        



                         table.append(row);

                    }


    }


});
</code></pre>