I am trying to implement a button in HTML that calls a function on click, which checks whether a textinput is empty. If so (the information hasn’t been entered), an error message for the input field should be generated. I am experimenting with a button that doesn’t submit the form. However, if you have a solution with a button that