Can someone point me to a javascript to enable/disable few buttons on an ASP.NET page on the client side. I didnt want to do postbacks for responsiveness
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is the code to disable a button:
to call it you’ll need to do:
George is right, someone can still monkey with the page to re-enable them, so it depends on what you are trying to stop. We disable buttons so that most people don’t double click and submit information twice etc. If someone really wanted to they could re-enable etc., but this solves about 99% of our headaches where we use it.