find out if a id has certain text and then change it
<p>I need to something like this</p>

<pre><code>if($('#ctl00_lblNoResults').text('Please select')){
$('.otherprop').text('Thanks')
}
else {
$('.otherprop').text('No Thanks')
}
</code></pre>

<p>So i have a layer like so</p>

<pre><code>&lt;div id="ctl00_lblNoResults"&gt;Don't select&lt;/div&gt;
</code></pre>

<p>And another bit of text</p>

<pre><code>&lt;div class="otherprop"&gt;No Thanks&lt;/div&gt;
</code></pre>

<p>I need to change the text of "otherprop" if "ctl00_lblNoResults" equals this</p>

<pre><code>&lt;div id="ctl00_lblNoResults"&gt;Please select&lt;/div&gt;
</code></pre>

<p>to</p>

<pre><code>&lt;div class="otherprop"&gt;Thanks&lt;/div&gt;
</code></pre>

<p>So desired results are</p>

<pre><code>&lt;div id="ctl00_lblNoResults"&gt;Don't select&lt;/div&gt;
&lt;div class="otherprop"&gt;No Thanks&lt;/div&gt;
</code></pre>

<p>or</p>

<pre><code>&lt;div id="ctl00_lblNoResults"&gt;Please select&lt;/div&gt;
&lt;div class="otherprop"&gt;Thanks&lt;/div&gt;
</code></pre>

<p>Hope this makes sense</p>

<p>Thanks</p>

<p>Jamie</p>
