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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:09:00+00:00 2026-06-18T02:09:00+00:00

I set up a test page that is from an actual project page stripped

  • 0

I set up a test page that is from an actual project page stripped down to just enough to demonstrate my problem. Here’s the link.

To see what I mean, go to the link and observe how clicking on the top table’s rows toggles displaying that row’s textboxes and then labels, alternately. Note how clicking on the Cancel button makes both rows show the labels.

The bottom table behaves the same when you click on its rows. But the problem rears its ugly head when you click on the Cancel button in the bottom table. Instead of just hiding that row’s textboxes, the page actually refreshes.

I’ve spent HOURS on this and I can’t for the life of me figure out what’s going on, nor how to fix it.

I’d really appreciate it if someone could take a look at this and help me figure out what’s going on.

  • 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-06-18T02:09:01+00:00Added an answer on June 18, 2026 at 2:09 am

    stopPropogation is case sensetive. Your second event handler uses the wrong casing (it starts with a capital S).

    // Prevent bubbling of click events in #tblBranchCoverage
    $('#tblBranchCoverage').on('click', ':input', function (e) {
        e.stopPropagation();
    });
    
    // Prevent bubbling of click events in #tblViewEditAllBranches
    $('#tblViewEditAllBranches').on('click', ':input', function (e) {
        e.StopPropagation();
    });
    

    However as niahar points out, your second table is within a form and e.stopPropagation isn’t quite enough. You can amend both of your event handlers to simply return false instead. It’s probably worth having a read at the differences between e.stopPropogation(), e.preventDefault() and return false in this case.

    If you’re thinking of going with the approach of using ajax for updates when you click save, you could simply use basic buttons instead of input buttons and not worry about having to cancel form submits.

    <button type="button">Save</button>
    

    Note the type="button" bit is important otherwise it will behave like an input button and and submit your form!

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

Sidebar

Related Questions

Just trying to set up a little test page and even it doesn't behave
I have a little test project set up so that when you click a
I have a set of test accounts that are going to be created but
I have a LDIF file that consists of a set of test users and
I have a VS2010 unit test project set to using SpecFlow 1.8.1 and mstest.
I have a very simple test page that uses XHR requests with jQuery's $.getJSON
Here's a small sample of some test code that simply goes to http://www.un.org/apps/news/story.asp?NewsID=37180&Cr=Haiti&Cr1= and
I have a page that's derived from a master page. On this page, I
Sometimes I need to set some string values from code, for example: Page.Title =
I'm trying to test a page containing an element that, when the page is

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.