remove item from array jquery
You can do something like this: Var y [1, 2, 2, 3, 2] var removeItem 2 Y jQuery.grep(y, function(value) return value ! removeItem ) Result: [1, 3]. Http://snipplr.com/view/14381/ remove-item-from-array-with-jquery/. Oct 17, 2010 function removeItem(array, item) for(var i in array) . Feb 22, 2012 Below code will remove the item from the array by its value (not by index) to/from an array, and returns the removed element(s) where jQuery. splice(index, count) removes count number of values starting at index , so Today during my work, I came across a situation where I need to remove items from Array using jQuery. I did it using jQuery and thought of sharing with my you as well.