I\'m making a form with inputs, if the input type is empty then the button submit is disabled but, if the input fields is with length > 0 the submit button is enabled
Why don't u use:
Then delete the onkeyup function on the input.