How to remove particular value from jquery array?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Today now in this post i will show how to remove particular value from jquery array. Some days ago when i was working on my code PHP project, at that time i need to remove the specific items value from my javascript array. So here i make a google search and try solve that but now i would like to share in my site. How to remove value from javascript array.

So, let’s see how to use:

Example:

var languages = ['php', 'laravel', '.net', 'java', 'c#', 'javascript']
var deleteLanguage = 'laravel';
languages = jQuery.grep(languages, function(value) {
  return value != deleteLanguage;
});
console.log(languages);

Read Also : How to Create Custom Blade Directive in Laravel?

Thanks for read. I hope it help you. For more you can follow us on facebook.

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →