forum

Home / DeveloperSection / Forums / How to dynamically add a table row with textbox?

How to dynamically add a table row with textbox?

Manish Kumar173523-May-2017
I am beginner in jquery..please help me ...this is my html code 
<table class="table" id="maintable">  
                <thead>  
                    <tr>  
                        <th>Firstname</th>  
                        <th>Lastname</th>  
                        <th>Email</th>  
                    </tr>  
                </thead>  
                <tbody>  
                    <tr class="data-contact-person">  
                        <td>  
                            <input type="text" name="f-name" class="form-control f-name01" /></td>  
                        <td>  
                            <input type="text" name="l-name" class="form-control l-name01" /></td>  
                        <td>  
                            <input type="text" name="email" class="form-control email01" /></td>  
                        <td>  
                            <button type="button" id="btnAdd" class="btn btn-xs btn-primary classAdd">Add More</button>  
                        </td>  
                    </tr>  
                </tbody>  
            </table>  

Updated on 02-Jun-2017

Can you answer this question?


Answer

2 Answers

Liked By