Jquery Check if Value Input is in the array : <p>I want to check if my array contains the Value Input, i want something like that, anyone have an idea on how to do that ?</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>if(jQuery.inArray($('#ValueInputTitle').val, variableValueInput) !== -1)
	{
    console.log("is in array");}
	else {
    console.log("is NOT in array");
}</code></pre>
</div>
</div>
</p>
