Results 1 to 5 of 5

Thread: [RESOLVED] firing javascript on OnCheckChanged radiobutton event

Threaded View

  1. #1

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Resolved [RESOLVED] firing javascript on OnCheckChanged radiobutton event

    I have some javascript that I'm trying to fire off when the checked status of a radiobutton is changed. its suppose to uncheck any checkboxes that are checked on my page. the checkboxes are named CheckBox1, CheckBox2, etc. Here is my javascript

    Code:
    	<script type = "text/javascript">
    	function uncheckAll() 
    			{
    				for (var j = 1; j <= 14; j++) 
    				{
    					box = eval("document.Form1.CheckBox" + j); 
    					if (box.checked == true) box.checked = false;
    				}
    			}
           </script>
    and here is my code in my html:

    Code:
    <asp:RadioButton id="OptionButton3"  OnCheckedChanged="uncheckAll()" runat="server" Text="CONCENTRIC OR COMPRESSED" GroupName="CableType"></asp:RadioButton>
    But when I load the page i get this error:


    Compiler Error Message: BC30456: 'uncheckAll' is not a member of 'ASP._500_10_aspx'.



    I'm coding in VS.net. Why can't it recognize it?
    Thank you!
    Last edited by drpcken; Oct 21st, 2005 at 05:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width