alert(document.getElementById('unitInput1').parentNode.getElementsByClassName('noButtonInputCount unitsInputCount')[0].innerHTML);