Hi,
Im working on a form that is generated by a database query with Coldfusion.
I have a few issues with Javascript as i am relatively new to it.
my form is
would anyone be able to show me how to i can make it so when the checkbox is checked the radio button and textarea become disabled ?
My form elements are named "Name" + ID of the database record at at any time can be up to 50 records on one screen.
I only want to disable the form elements that are numbered the same as the checkbox that is selected.
IE = if delete1 is checked then i need textarea1 and radio1 disabled.
This is probably a very simple task but right now it is absolutely beyond me...
my form is below
- HTML: Select all
<form action="" method="">
<textarea name="Textarea1" cols="40" rows="5"></textarea>
<input type="radio" name="radio1" value="show">
<input type="Checkbox" name="Delete1" value="123">
</form>