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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:09:34+00:00 2026-06-11T15:09:34+00:00

guys im trying to make a dynamic design for adding students in a class

  • 0

guys im trying to make a dynamic design for adding students in a class with a button add on the 10th row ![enter image description here][1]

http://www.facebook.com/photo.php?fbid=4099710263250&set=a.1210298669766.32621.1597725369&type=3&theater

i can append a new row with a button on it but when i click the new button the click function did not respond and i still need to click the add button on the 10th row to add new one.

here is the code.

         <table>
            <th colspan="4"><h2>Boys</h2></th>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname1" class="input">
              </td>
              <td>
                <input type="text" name="bstudnt_mname1" class="input">
              </td>
              <td>
                <input type="text" name="bstudnt_fname1" class="input">
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname2" class="input">
              </td>
              <td>
                <input type="text" name="bstudnt_mname2" class="input">
              </td>
              <td>
                <input type="text" name="bstudnt_fname2" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname3" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname3" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname3" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname4" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname4" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname4" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname5" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname5" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname5" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname6" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname6" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname6" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname7" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname7" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname7" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname8" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname8" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname8" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname9" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname9" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname9" class="input" >
              </td>  
            </tr>
            <tr>
              <td>
                <label>Name:</label>
              </td>
              <td>
                <input type="text" name="bstudnt_lname10" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_mname10" class="input" >
              </td>
              <td>
                <input type="text" name="bstudnt_fname10" class="input" >

                <input type="button" id="" name="add_bstudent" class="button add-        bstudent" value="+">
              </td>  
            </tr>              
          </table>

JS….

$('.add-bstudent').click(function () {
    $(this).parent().parent().after("<tr><td><label>Name:</label></td><td>  <input type='text' name='bstudnt_lname10' class='input' placeholder='Last Name'></td><td><input type='text' name='bstudnt_mname10' class='input' placeholder='Middle Name'></td><td><input type='text' name='bstudnt_fname10' class='input' placeholder='First Name'> <input type='button' id='' name='add_bstudent' class='button add-bstudent' value='+'></td></tr>");
});
  • 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-11T15:09:35+00:00Added an answer on June 11, 2026 at 3:09 pm

    When you use the click() function to register the event, it will only register the event on objects returned by the selector at that moment. If you create an object after the fact, it won’t bind to the event. Use the on() function and give it your selector: http://api.jquery.com/on/

    Example:

    $('#container').on('click', '.add-bstudent', function(event) { ... });

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

Sidebar

Related Questions

Hey guys im trying to make a dynamic scrollable list of selectiondata which a
Hey guys I'm trying to make a GUI which can navigate through JTextAreas when
Hello guys look to my code I'm trying to make a program which asks
how are you guys? I'm trying to make my PHP script accept many languages,
Hi guys i am trying to create one simple make file and execute in
Hi guys Im trying to make a drop-down list of countries and when the
hey guys, im trying to make a volunteer form, that takes info such as
Hey guys I'm trying to make a basic calculator (polish style) but can't figure
Guys, I am trying to make a website that keeps a cookie active, so
Hey guys, I'm trying to make a small addition to a web app I

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.