There is an input type="text" and a button . It is necessary to make a check: if more than one character is entered in input type="text" , the button is active, if less than one, then the button is inactive.
<input type="text" id="text1"> <button id="btn"></button>