JavaScript Blog
Sunday, July 3, 2016
How to check whether array values are same in java script
Hi
for(i=1;i<data.length;i++){
if(data[i].type != data[0].type) {
alert('Select similar type of value');
return;
}
}
How to check whether array values are same in java script
Hi
for(i=1;i<data.length;i++){
if(data[i].type != data[0].type) {
alert('Select similar type of value');
return;
}
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)