Сообщение от MOZG
|
но выдает 0 вместо 999 =(
|
Разве?У меня 999 в хроме
<!DOCTYPE html>
<html>
<td id="big_td_56">
<div class="inputContainer bigBoxStyleClass">
<img
class="noButtonImageUnits switchImage" src="pictures/Units/SwordmanIcon.png"/>
<div class="noButtonLabelInput">Солдат2</div>
<div
id="unitMax1" class="mapMaxButton hoverable">
<div class="iconbutton_left">
<div class="iconbutton_right">
<div class="iconbutton_middle">
<span class="mapMaxValue">MAX</span>
</div>
</div>
</div>
</div>
<img class="permissionIcon switchImage"
src="pictures/Browser/PermissionFalse_Colored.png"/>
<input id="unitInput1" class="noButtonInputField unitsInput" type="text" size="10"/>
<div class="noButtonInputCount unitsInputCount">999</div>
</div>
</td>
<script>
alert(document.getElementById('unitInput1').parentNode.getElementsByClassName
('noButtonInputCount unitsInputCount')[0].innerHTML);
</script>