I want to do something like this:
- When the text field is empty, the submit should be disabled (disabled="disabled").
- When something is typed in the text field to remove the disabled attribute.
- If the text field becomes empty again(the text is deleted) the submit button should be disabled again.
This is my HTML:
<input type="text" name="textField" />
<input type="submit" value="send" />
Does anyone have any ideas on this?