Thursday, November 26, 2009

Javascript function check data exist in array

function isexist(id, list) {
$.each(list, function(i, temp) {
if (id == temp) {
return true;
}
});
return false;
}

No comments: