Insert json values in to dropdown box
<pre><code> var g_Year = [
         { Year: "2011" },
         { Year: "2011" },
         { Year: "2010" },
         { Year: "2012" },
         { Year: "2011" },
         { Year: "2012" }
];
fxnDrop = function () {
        $.each(g_Year , function (index, Ele) {
            var iYear = g_Year [index].Year,
                sHtmlYear = '&lt;option value="' + iYear + '"&gt;' + iYear + '&lt;/option&gt;';
            $("#DropDown_Year").each(function (index, Ele) {
                $("#DropDown_Year").append(sHtmlYear);
                if (Ele.value != iYear) {
                    $("#DropDown_Year").remove(sHtmlYear);
                }
            });
        });
}
</code></pre>

<p>Here Im having multiple years, My goal is to display particular year only one time in the dropdown box.For Eg:2011 has to display only one time in the dropdown box. Can any one help me to do this. Im getting multiple 2011 values in dropbox.</p>
