Definition of max. values and pressing a button in a specific block Hello. The javascript is not very. Help to write a script that will determine the maximum value of the blocks at one address and press the button in the corresponding block. Code of one of the blocks:
<div class="order"> <div class="order-ava"> <img src="/media/images/city/1078.jpg"> <div class="special-order-ava-2"></div> <div class="special-order"> <span><a href="/page/orders">Халтура</a></span> </div> </div> <div class="details"> <ul> <li> <b>0.86 руб.</b>//значение которое нужно сравнить с другими блоками / 1 ч. 13 м. 43 с. </li> <li style="font-size: 11px;"> Весны 28 / Восточный Пер 38 </li> <li> Уровень такси <b>2</b> </li> <li style="color:green;font-size: 12px;"> 1 ч. 5 м. 14 с. (-11.5%) </li> </ul> <div class="acceptorder"> <button class="button_gray" data-id="17279703">Взять заказ</button> //кнопка которую нужно нажать если значение в блоке максимальное </div> </div> </div> such blocks on page 20