I have a radio button with a text box. How to enable / disable textbox using onclick switch event? That is, if the radio button is selected, the text field must be enabled or disabled.
Here is my code below:
<INPUT TYPE="radio" name="type" id="type1">
<input type="text" name="name" value="<?php echo $name?>" onChange="javascript:enableField();"/>
source
share