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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:07:06+00:00 2026-05-24T00:07:06+00:00

I have a form that adds rows in with the jQuery .afer() method (on

  • 0

I have a form that adds rows in with the jQuery .afer() method (on the push of a button). My footer is always positioned at the bottom of the page when it loads, but if I click the button enough times, the footer stays where it was, and it overlaps the rows. How can I make it recognize that the table is getting larger, and it needs to move down? I am willing and comfortable using solutions involving CSS or JavaScript.

CSS

.footer
{
    position:absolute;
    bottom:0px;
    width:100%;
}

Jquery

$(".gameSchedule .addEvent").bind('click', function () {
    $(".gameSchedule tr:nth-child(2)").after('<tr><td><input type="text"</td><td><input type="text"</td><td><input type="text"</td><td><input type="text"<td><td><input type="text"</td></tr>');
});

HTML

<form name="gameForm" class="gameSchedule"><!--FORM FOR GAMES-->
<table  >
    <tr>
        <td colspan="5">
            <table>
                <tr>
                    <td align="left">Team Name</td>
                    <td><input type="text" /></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>Date</td>
        <td>Time</td>
        <td>Opponent/Event</td>
        <td>H/A</td>
        <td>Location</td>
    </tr>
    <tr>
        <td><input type="text"</td>
        <td><input type="text"</td>
        <td><input type="text"</td>
        <td><input type="text"</td>
        <td><input type="text"</td>
    </tr>
    <tr>
        <td colspan="2"><input type="button" class="addEvent" value="Add Event"/></td>
    </tr>
</table>
</form>
  • 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-24T00:07:07+00:00Added an answer on May 24, 2026 at 12:07 am

    Solved my own problem. This works like a charm!

    CSS

    #Content{
        width:100%;
        min-height:100%;
    }
    

    jQuery

    $(document).ready(function () {
        var docHeight = $('#content').height();
        var wantedHeight = docHeight - 376;/*Minus header and footer combined*/ 
        $('#content').css({ "min-height": wantedHeight });
    });
    

    HTML

    <div id="header"></div>
    <div id="content"></div>
    <div id="footer"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic html form that adds some data to the page using
I have a form on a page that adds new data to a database
I have some Javascript that dynamically adds rows/fields when you click the button, Add
I have a form that adds links to a database, deletes them, and --
I have a form that searches all rows in a single table (TServices) that
I have a form that uses jQuery to submit an ajax post and it
I have this page called up.php that adds 1 to a txt file set
I have a form that adds an error class to the parent div for
I have created a form that adds trs to a table. However the end
I have an entity form customization that adds an extra tab to my Contact

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.