/ Published in: JavaScript
like PHP function in_array
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function in_array(item,arr) { for (p=0;p<arr.length;p++) if (item == arr[p]) return true; return false; }