I need to something like this
if($('#ctl00_lblNoResults').text('Please select')){
$('.otherprop').text('Thanks')
}
else {
$('.otherprop').text('No Thanks')
}
So i have a layer like so
<div id="ctl00_lblNoResults">Don't select</div>
And another bit of text
<div class="otherprop">No Thanks</div>
I need to change the text of "otherprop" if "ctl00_lblNoResults" equals this
<div id="ctl00_lblNoResults">Please select</div>
to
<div class="otherprop">Thanks</div>
So desired results are
<div id="ctl00_lblNoResults">Don't select</div>
<div class="otherprop">No Thanks</div>
or
<div id="ctl00_lblNoResults">Please select</div>
<div class="otherprop">Thanks</div>
Hope this makes sense
Thanks
Jamie