jQuery: Search text in string
<p>I try this:</p>

<pre><code>form['comment'] = '&lt;blockquote&gt;test&lt;/blockquote&gt;&lt;a href="#"&gt;test&lt;/a&gt; &lt;Your reply here&gt;';

if($(form['comment']).search('&lt;Your reply here&gt;'))
    alert(1)
else
    alert(0)
</code></pre>

<p>But have this error:</p>

<blockquote>
  <p>TypeError: $(form.comment).search is not a function</p>
</blockquote>

<p>I fix this problem that:</p>

<pre><code>if(form['comment'].value.search('&lt;Вашият отговор тук&gt;') != -1)
    alert(1)
else
    alert(0)
</code></pre>
