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 arrFruits = ["apple", "mango", "banana", "watermelmen", "tomato"]; var removeArrayValue = "mango"; arrFruits.splice($.inArray(removeArrayValue, arrFruits), 1); alert(arrFruits) console.log(arrFruits); }); </script> </body> </html>
➤ Run / View
Result :