How to check if value exist in array using Javascript and Jquery . Javascript and Jquery provides in-built function indexOf() and $.inArray(). In this tutorial, i’ll explain how to use these functions and how we can create our own custom method as well.