JavaScript Blog
Showing posts with label
how to compare the array value
.
Show all posts
Showing posts with label
how to compare the array value
.
Show all posts
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;
}
}
Older Posts
Home
Subscribe to:
Posts (Atom)