PFB java script code..
the thing is im getting alert for duplicate entry. how can avoid the repeated data?
Var activityconunt =0;
if (activityconunt !== data.iRoundId) {
alert("duplicate");
$("#selectRound_Type").append("<option name='round' id=" + data.iRoundId + ">" + data.strRoundName + "</option>");
}
my output
activityconunt? shouldnt this beactivitycount? and updated my answere with a faster and tested solution. Its way less code the all other solutions. Actually only one line ^^