Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1064743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:42:51+00:00 2026-05-16T19:42:51+00:00

I have an ASP.NET control that outputs a button to the screen and I

  • 0

I have an ASP.NET control that outputs a button to the screen and I have no way of modifying that button in the server side.

The button renders with some functions in the onclick event and I need to disable the button after it has been clicked.

I’ve decided to use jQuery and append the javascript to disable the button on the onclick event. The problem is that by doing so I am also removing the original click event. Here’s the code i’m using.

$(":submit[value='Finish']").click( function(event) { 
    $(this).attr("disabled", true); 
} );

How can I append to the click event instead of replace it?

Thanks…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T19:42:53+00:00Added an answer on May 16, 2026 at 7:42 pm
    var func = obj.onclick; //get reference to original click handler
    obj.onclick = function() {
       func(); //call the original click handler
       //do stuff...
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET DropDownList control that retrieves the first and last name from
I have an ASP.NET page that uses the ASP.NET Ajax Control Toolkit TabContainer .
Suppose I have an action that returns an rendered asp.net mvc control and send
I have an asp.net form that contains some html, 2 controls a calendar from
I have a asp.net repeater control in a aspx page, with runat=server and an
I am attempting to create a custom server control CollapsablePanel that extends ASP.net's Panel.
I'm creating an ASP.NET control that outputs <object> and <embed> tags. I want the
If I have more than one asp.net server validator on the same control, (Suppose
The context I have an Asp .Net web application with some pages that inherit
I have a C#/ASP.NET .aspx page that declares two controls that each represents the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.