0

I have made a simple calculator using HTML, CSS, and JavaScript. The problem I face is that when the input field is empty (not having any number in it), the arithmetic operators (-,+,/,%,=) should be disabled.

  • Tips: [EventTarget.addEventListener() for check if change value](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) - [disabled element](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled) – Simone Rossaini Feb 11 '22 at 13:32
  • Have you tried searching for that question? This seems like something that has been covered rather a lot on this site and the internet in general. – DBS Feb 11 '22 at 13:32

0 Answers0