Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove item from array in jquery

var y = [1, 2, 2, 3, 2]
var removeItem = 2;

y = jQuery.grep(y, function(value) {
  return value != removeItem;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Remove #item #array #jquery
ADD COMMENT
Topic
Name
6+3 =