Jquery if $this attribute selector contains a word
<p>Is it possible to use the jquery attribute contains selector on <code>$(this)</code>? I cannot find any examples. I am trying to see if input fields contain a certain word. </p>

<pre><code>$("#form input").keyup(function() {
    if ($(this).filter( "[name~='someWord']" )) {
        console.log('yes');
    }
});
</code></pre>

<p>The code returns yes for all input even if they don't contain <code>someWord</code>.</p>