Can I use jQuery to check if a list item is present or not?
<p>I have the following select list:</p>

<pre><code>&lt;select id="AccountID"&gt;
  &lt;option value='0000'&gt;Select Account&lt;/option&gt;
  &lt;option value='002M'&gt;test1&lt;/option&gt;
  &lt;option value='002N'&gt;test2&lt;/option&gt;
  &lt;option value='002P'&gt;test3&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>After a user makes a new selection I need to execute the following which will replace the above list with one that does not contain the choice "Select Account"</p>

<pre><code>function SelectAccounts() {
    $.ajax({
        url: "/Administration/Accounts/GetOptions",
        data: { ds: $('#DataSourceID').val(),
            ac: '0000'
        },
        success: function (data) {
            $('#AccountID').html(data);
        }
    });
}
</code></pre>

<p>Is there a way that I can change:</p>

<pre><code>$('#AccountID').change(SelectAccounts);
</code></pre>

<p>so that it only calls SelectAccounts IF there is an option "0000" in the select list?</p>
