je dois quelque chose comme çasavoir si un id a un certain texte, puis changer
if($('#ctl00_lblNoResults').text('Please select')){
$('.otherprop').text('Thanks')
}
else {
$('.otherprop').text('No Thanks')
}
donc j'ai une couche comme si
<div id="ctl00_lblNoResults">Don't select</div>
Et un autre morceau de texte
<div class="otherprop">No Thanks</div>
Je dois modifier le texte de "otherprop" si "ctl00_lblNoResults" est égal à
<div id="ctl00_lblNoResults">Please select</div>
à
<div class="otherprop">Thanks</div>
Ainsi, les résultats souhaités sont
<div id="ctl00_lblNoResults">Don't select</div>
<div class="otherprop">No Thanks</div>
ou
<div id="ctl00_lblNoResults">Please select</div>
<div class="otherprop">Thanks</div>
Hope this logique
Merci
Jamie
Merci qui fonctionne parfaitement –