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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:11:12+00:00 2026-06-02T21:11:12+00:00

I have table with 20+ columns. Some columns have a Add link that would

  • 0

I have table with 20+ columns. Some columns have a Add link that would generate a popup in a div layer. The issue i’m having now is when I click on Add on columns that require scrolling to the right, it would create the popup but it would jump back to the first column and lose focus. How would I make sure it does not jump back to the first column and keep the focus where it was looking before click on Add?

$(function () {
    var moveLeft = 15;
    var moveDown = 20;

    $('a.trythis').click(function (e) {
        $('#popup').show().css('top', e.pageY + moveDown).css('left', e.pageX + moveLeft).appendTo('body');

    });


    $('#closethis').click(function (e) {
        $('#popup').hide();

    });

});
  • 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-02T21:11:13+00:00Added an answer on June 2, 2026 at 9:11 pm

    In both click functions either return false or use e.preventDefault().
    This will stop the browser trying to follow the links (which are presumably #) and just apply the javascript

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

Sidebar

Related Questions

I have 2 tables with some columns and another table that I want its
I have a table that, some of its columns are unknown at compile time.
I have some data I am querying. The table is composed of two columns
I have some table DOCUMENTS that have a column TYPE_ID and a table named
I have a table that I wish to select a subset of columns from
I have a model called shipments. I added some columns to the shipments table
I have a data table, and some columns are strings, some are decimal. When
I have a web user control, that has a table with 3 columns 1)
I have a table with some 30 columns, already used in the application extensively.
I have a table with some columns. For archive purposes I usually create second

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.