I'm making a website for my business and in this form I would like for them to choose what's wrong with their device. If their problem is not on the list I would like for them to type it into a <textarea>
. I was wondering if I could make that text area one of my radio button options. So far I have this...
<fieldset>
<legend> What's wrong with your device </legend>
<label> <input type = "radio" name = "problem">
Cracked Screen </label>
<label> <input type = "radio" name = "problem">
Broken Camera </label>
<label> <input type = "radio" name = "problem">
<textarea rows = "4" cols = "15" name = "problem"
placeholder = "other problems"></textarea>
</label>
</fieldset>
This seems like it would work but I'm worried that it will just render the text area as its own input under the same label. Any advice?
Also I was wondering how to make my radio buttons able to be unclicked. You can only activate them but you cannot deactivate them. Can that only be done with JavaScript?