Hi All,
I have an ASP.NET CheckBoxList control with only one checkbox in it. I need a javascript function of mine to run when the control is clicked, so I did the following:
[tt]...Attributes.Add("onclick", "myFunc();");[/tt]
The above works great, but it has one major flaw. The 'click' event is only fired when the user clicks on the checkbox itself. If the user clicks on the label that is next to the checkbox, the checkbox is checked/unchecked but the click event does not fire. Any ideas?
I'm using .NET 2002 with C# and IE 6.0.
Thanks.
JC
_________________________________________________
To get the best response to a question, read faq222-2244.
I have an ASP.NET CheckBoxList control with only one checkbox in it. I need a javascript function of mine to run when the control is clicked, so I did the following:
[tt]...Attributes.Add("onclick", "myFunc();");[/tt]
The above works great, but it has one major flaw. The 'click' event is only fired when the user clicks on the checkbox itself. If the user clicks on the label that is next to the checkbox, the checkbox is checked/unchecked but the click event does not fire. Any ideas?
I'm using .NET 2002 with C# and IE 6.0.
Thanks.
JC
_________________________________________________
To get the best response to a question, read faq222-2244.