how to disable button if input is empty

3. This … 1. Consider we have an input field,