Thursday, August 7, 2008

Repetions


function show(){
var i,j;
var str=document.getElementById ("TextBox1").value;
var arr=new Array();
arr=str.split(",");
for(i=0;i
for(j=i+1;j
if(arr[i]==arr[j]){
alert("Repeat exists");
break;
}
}
}

No comments: