Answers for "jquery work with array"

0

in array jquery

if(jQuery.inArray("test", myarray) !== -1)
Posted by: Guest on July-29-2021
1

how to take create array using jquery

var length = 5;
var array = [];
var i = 0;

for (i = 0; i != length; i++){
  array.push(i)
  //array.push is used to push a value inside array
} 

console.log(array);

//console.log is used to check array value inside your console
Posted by: Guest on May-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language