How can I make interactive HTML form, example :
<select name="command">
<option value="send">Send</option>
<option value="cancel">Cancel</option>
</select>
<!--
I want the following text input hidden by default,
but active only if option "Cancel" is selected
-->
<input type="text" name="cancel_reason" id="needreason">
I want the "cancel_reason" input field is hidden by default, and shown if dropdown-option "Cancel" is selected before, otherwise it should remain hidden.