If the user selects an option from the drop-down list, he will display this text box, but if he selects the option with the value "Other", a line will appear that will enter a value for another.
my code works fine if only the parameter value is not "Other"
<script type="text/javascript">
</script>
<body bgcolor="#ffffff">
<form id="FormName" action="" method="get" name="FormName">
<select name="choice1" size="1" onchange="setAndReset(this);">
<option value="one">first</option>
<option value="two">second</option>
<option value="three">third</option>
<option value="other">Other</option>
</select>
<input type="text" name="hiddenInput" value="">
<tablt><tr id="ShowHide"><td>
<input type="text" name="otherInput">
</td></tr></table>
<input type="submit" name="submitButtonName">
</form>
</body>
but it does not show / hide or set a value in the text box.
If he allows jquery, then I will be grateful for the code.
Thank.
source
share