title: When I increase the textcontent value the decrease button is still disabled
body: <p>Well I cant enable the decrease button when the textcontent value is higher than 1. My goal is to increase the value from 1 to all the way up with enabling the decrease button but when i decrease down to 1 i want my decrease button to be disabled.</p>
  
  <pre><code>var newDiv = document.createElement('div')
  var increaseButton = document.createElement('button')
  var decreaseButton = document.createElement('button')
  
  newDiv.textContent = 1
  document.body.appendChild(newDiv)
  document.body.appendChild(increaseButton)
  document.body.appendChild(decreaseButton)
  
  
  increaseButton.setAttribute('id', 'increase')
  decreaseButton.setAttribute('id', 'decrease')
  
  if(Number(newDiv.textContent) == 1) {
      decreaseButton.setAttribute('disabled', '')
  }else {
      increaseButton.removeAttribute('disabled')
  }
  
  increaseButton.onclick = () =&gt; {
      newDiv.textContent = Number(newDiv.textContent) + 1
  }
  
  decreaseButton.onclick = () =&gt; {
      newDiv.textContent = Number(newDiv.textContent) - 1
  }
  </code></pre>