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

  • Home
  • SEARCH
  • 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 6937059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:18:55+00:00 2026-05-27T12:18:55+00:00

Okay, so I’m making a plugin to allow inline editing of tables in my

  • 0

Okay, so I’m making a plugin to allow inline editing of tables in my website, going great so far, I’ve got most of it done, but I can’t seem to get Focusing out of the table right. So if someone is done editing and starts editing a new row or just clicks out of the row, it should save and go back to normal. But if I use blur on the row, there’s no response, but if I use blur on the element, it triggers when people swap from one element to another

But if I use focusout on the row, it triggers whenever someone leaves the element as well, even if they click in the same row. Nor is there anything under the event variable that tell me what element it’s setting the focus on, so I can’t compare with the current row to see if they’re just clicking with in the row.

I’m thinking of having it save on Enter/Mouse Click to a Save button/Start editing another row, but I’d rather get this to work, as it seems to be a much better method of doing it. Thought anyone? Please?

  • 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-27T12:18:56+00:00Added an answer on May 27, 2026 at 12:18 pm

    I would handle your request by binding a click handler for the whole document, and then adding a stopPropagation() call within my other click events. I’ve setup a fiddle to demonstrate: http://jsfiddle.net/NwftK/

    <table border="1" width="200">
        <tr id="myRow"><td>Hello</td><td>World</td></tr>
    </table>
    

    And the jQuery:

    $(function () {
        $("#myRow").on('click', function (e) {
           $(this).css('background-color', 'blue');
            e.stopPropagation();
        }); 
    
        $(document).on('click', function () {
    
           $("#myRow").css('background-color', 'red');
        });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I think I'm just making a stupid mistake here, but I want to
Okay, I have done a bit of searching online and found this thread, but
Okay, I'm trying to reverse engineer a feature on a website I found -
Okay, so I'm running a small test webserver on my private network. I've got
Okay, so I'm making a table right now for Box Items. Now, a Box
Okay I got some good advice for Mobile Detection but still having an issue
Okay, what have I done wrong here? I'm trying to .POST data from a
Okay im making a mobile application using jquery, and then im using phonegap to
Okay, This may be really simple or it may not even be possible, or
Okay, so here's my problem: We use FOP for creating pretty report output. We

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.