Codepedia
.info
Home
About
Demos
Tools
SVG Wave Generator
Colors
Edit This Code :
<html> <head><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> </head> <body> <script> $(document).ready(function(){ var arrNumber = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; // define array variable with some values var removeValue = 5; // remove item value from array arrNumber = $.grep(arrNumber, function(n) { return n != removeValue; }); alert(arrNumber); console.log(arrNumber); }); </script> </body> </html>
➤ Run / View
Result :