Possible Duplicate:
Javascript: Determine whether an array contains a value
var thelist = new Array();
function addlist(){
thelist.push(documentgetElementById(\'data\').innerHTML);
}
How can I check that the data I push does not already exsist in array thelist?





Rating:
The post javascript – Check that the array is unique appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-check-that-the-array-is-unique.html
No comments:
Post a Comment