Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Remove object from Collection using javascript/jquery
Girish Sapariya
Aug 19 2014 1:26 AM
782
Reply
hi, I am having a collection like this:
var ColList = [ { ID: "1", Name: "Test1"}, { ID: "2", Name: "Test2"}, { ID: "3", Name: "Test3"}, { ID: "4", Name: "Test4"}]
I want to remove the object with value ID = 2 from ColList
just like we do in c# obj.Remove(obj1) or obj.RemoveAt(1) sort of.
How can this be achieve in javascript or jquery
and also how can I add new obj in ColList
Thanks
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
background-color:transparent css is not working in IE
I want to use my JSON data in creating D3JS chart