troubleshooting Question

javascript enable button

Avatar of TonyReba
TonyRebaFlag for United States of America asked on
Web Languages and StandardsJavaScriptASP.NET
13 Comments1 Solution580 ViewsLast Modified:
I am terying to enable disable the submitt button on an webform , but my function doesnt seem to work .  I tried to do this on vb codehind but figured  out page needed to postback to make this so Javascript is any soultion right?

here is then my java script not working
<script  type="text/javascript" language="javascript" >
         function check(field) {
             var btn = document.getElementById('btn_Agree');
             if (CheckBox1.checked == true) {
                 btn.disabled = false;
             else {
                 btn.disabled = true;

<asp:Button ID="btn_Agree" runat="server" Text="Agree and Print" />
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros