Are you trying to do it on server side ? I think you want client side for
that your code is not right.
You need something like
So for series of checkboxes, you want to write a function that would do it
like
<html>
<body>
<form name=form1>
<input type=checkbox name="aaa" value="aaa">
<input type=checkbox name="bbb" value="bbb">
<input type=button value="Disbale" onclick=disableall()>
</form>
</body>
</html>
<script>
function disableall()
{
document.form1.aaa.disabled=true
document.form1.bbb.disabled=true
}
</script>
"Jack" wrote:
Hi,
I have a asp page where a checkbox, when clicked will disable all text boxes
associated with the page.
The following is a part of a code for the checkbox with its name and
readonly attributes.
name="chk_Complete" <%= isReadOnly %>
I have to disable(or make sure does not disaplay) a save button in the same
page when this checkbox's attribute is readonly. I have no idea how to do
this.
I need some help/idea to handle this issue. Thanks.