Hi,
This is a general question to Enable/Disable obects using Javascript code.
Here is the code. In which if “Enable text fields” RadioButton is clicked then both the “First Name” and “Last Name” text fields become Enable [they are enabled by-default] and if “Disable text fields” RadioButton is pressed then both below text fields become disable. I realize we have to use JS function. But it would be highly appreciated if someone could provide help.
Bye,
Viki.
[code]
[code=php]
<html>
<head>
</head>
<body>
<table>
<td>
<input type=”radio” name=”sex” value=”male”> Enable text fields
<input type=”radio” name=”sex” value=”female”> Disable text fields
</td>
</table>
<table>
First name: <input type=”text” name=”firstname”>
<br>
Last name:
<input type=”text” name=”lastname”>
</table>
</body>
</html>
[/CODE]