append html form element

Solutions on MaxInterview for append html form element by the best coders in the world

showing results for - "append html form element"
Juan Pablo
08 Oct 2017
1<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
2        <script>
3            $(document).ready(function () {
4                $(".add_exp1").click(function(){
5                    $(".exp").append('<br><label for="exp">Another Work Experience<br><br>Company Name:    </label>' +
6                        '<input type="input" style="width: 60%;" class="form-control" id="company_name" placeholder="Company Name">'+
7                        '<br>'+
8                        '<label for="exp"><br><br>Position:    </label>'+
9                        '<input type="input" class="form-control" id="position" placeholder="Position">'+
10                        '<label for="bday">               Duration:'+
11                        '   </label>'+
12                        '<input id="date-picker-2" type="date" class="date-picker form-control" placeholder="Date Started"/>'+
13                        '<input id="date-picker-3" type="date" class="date-picker form-control" placeholder="Date Ended"/> <input type="checkbox"'+
14                        'id="present" value="present"> Present'+
15                        '<br><br><br>');      
16
17                });
18
19            })
20
21
22        </script>
23
similar questions
queries leading to this page
append html form element