jQuery - Check a Input Field for a Word in a String
<p>I have users that are putting in links to youtube videos and we want to only enable the button if the string (URL) they enter contains the word, 'youtube'.  Below is the code and I can't get it to work how I need it to.  Thanks...</p>

<pre><code>var inputValue = $('#inputLink').val();
</code></pre>

<hr>

<pre><code>$('#submitBtn').attr("disabled", "disabled"); 

$('#inputLink').keyup(function(){
    if (inputValue.toLowerCase().indexOf("youtube") &gt;= 0) {
        $('#submitBtn').removeAttr('disabled');
    }
});
</code></pre>
