var href = jQuery('#right').find('a[href] > div').not('.disabled_pbx').first().parent().attr('href'); console.log('href: ', href); if (!href) return;
href: modules/adview.php?ad=103172&mask=a23fd0c876a451d662617d75ffad1c9e
Preciso todos os href que $ (“.hap:contains(’30 Pontos’)”)
</a> <a href="modules/adview.php?ad=98859&mask=79a8fb2157ca7bc911b946f69df4ef3d" target="_blank"> <div id="98859" class="hap"> <div class="hap_title" style="background:#F60"> 2018 World Mining </div> <div class="hap_content"> <img src="https://www.imageup.ru/img278/2971222/7.gif" width="100" height="100" /> <p style="width:140px"> World Mining – the future that is already here </p> </div> <div class="shap">10 Pontos</div> </div> </a> <h3 style="background:#069">30 Second Advertisements</h3> <a href="modules/adview.php?ad=69945&mask=85294e73b861c41a487582486cd6c404" target="_blank"> <div id="69945" class="hap"> <div class="hap_title" style="background:#069"> XMR </div> <div class="hap_content"> <p> </p> </div> <div class="shap">30 Pontos</div> </div> </a>
Como fazer ?