how to check if input field is empty

前端 未结 7 1040
别那么骄傲
别那么骄傲 2020-12-30 01:36

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

<
7条回答
  •  感动是毒
    2020-12-30 02:02

    Why don't u use:

    
    

    Then delete the onkeyup function on the input.

提交回复
热议问题