¡@

Home 

2014/10/16 ¤W¤È 12:04:29

jquery Programming Glossary: issuesarray

Using jQuery inArray with array of JavaScript Objects

http://stackoverflow.com/questions/1758937/using-jquery-inarray-with-array-of-javascript-objects

jQuery inArray with array of JavaScript Objects I'm working with an array of JavaScript Objects as such var IssuesArray ID 1 Name Issue1 ID 2 Name Issue2 ID 3 Name Issue3 My end effort is trying to remove an object from the array when I know.. an object from the array when I know the ID of the object. I'm trying to use code that is something like this .grep IssuesArray function n i return i .inArray 2 IssuesArray So this shows that I'm trying to use jQuery grep to remove an element by index.. of the object. I'm trying to use code that is something like this .grep IssuesArray function n i return i .inArray 2 IssuesArray So this shows that I'm trying to use jQuery grep to remove an element by index i which I am trying to retrieve by using..