Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Friday, February 4, 2011
How to remove one element from array in Javascript?
How to remove one element from array in Javascript?
myArray = [
'a'
,
'b'
,
'c'
,
'd'
];
myArray.splice (
0
,
1
);
[
'b'
,
'c'
,
'd'
];
Reference
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment