[Solved] how to add row in other table? [closed]


<!DOCTYPE html>
<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <script>
            $(document).ready(function(){
                $(".button").click(function(){
                    $('.child-table tr:last').after('<tr></tr>');
                });
            });
        </script>
    </head>
    <body>
        <table>
            <tr>
                <td><input class="button" type="button" value="add"/></td>
                <td>
                    <table class="child-table">
                        <tr><td></td></tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>

4

solved how to add row in other table? [closed]