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;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment