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 6772377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:32:32+00:00 2026-05-26T15:32:32+00:00

I have to use a user control form In that form, there is a

  • 0

I have to use a user control form

In that form, there is a Submit button.

That button is html button.

That button has lots of validation functions for the other controls.

Now I want to add another function of my own into that button.

Now I faced my problem. I dunno the ID of that button.

When I view source I find no ID or Name.

But I can use

<script type="text/javascript">            
     $("input[type=submit]").click(function () { return validateCaptcha(); })
</script>

To add my function.

If I do that, only my function would run and the other original validation functions are not running anymore.

I want to append my function at the end of its validation functions.

I found this..

JavaScript: Adding an onClick handler without overwriting the existing one from another question

But that one find the controls by tagname. If I find it by tagname there would be lots of input tags.

Is there any other way to combine the 2 answers that I found?

Tkz

  • 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-26T15:32:32+00:00Added an answer on May 26, 2026 at 3:32 pm

    If you know the name or the ID of the form you are working on you could do

    $("#formname").submit(function(){return validateCaptcha(); });
    

    or

    $("form[name=form_name]").submit(function(){return validateCaptcha();});
    

    Witout knowing the ID of the submit button or the form (or the name of either) it would be difficult to validate; you need some sort of identifier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a user control that descends from UserControl. When dropped onto the form
I have a user control on a form that can spawn several non-modal child
I have a user control ( gallery.ascx ) and I want to use the
I have an asp.net user control on which I want to use jquery ajax.
I have a .NET user control registered as COM. I use regasm to register
I have got a form which a user can use to create a new
I have about 20 text fields on a form that a user can fill
I'm just starting to learn AspectJ, and I have use-case for say, User login.
I often use the net user command to have a look at AD groups
I have built a simple Eclipse plugin where a user may use a TableViewer

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.