How to Remove Specific Value from Array in JQuery?
Hi Developer,
I am going to show you an example of remove specific value from array javascript. I explained simply about remove particular value from array javascript. I explained simply step by step js remove specific element from array. I explained simply about javascript delete specific value from array.
When I was working on my code PHP project, at that time I need to remove specific items value from my javascript array. i did a google search and solve that but I would like to share on my site how to remove value from the javascript array. so, let's see how to use:
Example:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
<script type="text/javascript">
var languages = ['php', 'laravel', '.net', 'java', 'c#', 'javascript']
var deleteLanguage = 'laravel';
languages = jQuery.grep(languages, function(value) {
return value != deleteLanguage;
});
console.log(languages);
</script>
</body>
</html>
Output:
['php', '.net', 'java', 'c#', 'javascript']
I hope it can help you...

Hardik Savani
I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to use Laravel Variable in JQuery?
- Laravel JQuery UI Autocomplete Ajax Search Example
- How to Remove Last Element from Array in JQuery?
- JQuery Moment Add Minutes to Datetime Example
- Remove Duplicate Objects from Array Jquery Example
- How to create custom scrollbar using jquery mcustomscrollbar plugin ?
- Jquery - draggable sortable table rows example demo with bootstrap
- Jquery modal dialog prompt using bootstrap bootbox JS example
- How to remove all whitespace from string in JQuery?
- How to Check Undefined, Empty and Null in JQuery?
- How to Convert Line Breaks to br in jQuery ?
- How to Check Object is Empty or Not in JQuery?