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
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)