-
Notifications
You must be signed in to change notification settings - Fork 0
/
addmore-pdf.php
28 lines (26 loc) · 921 Bytes
/
addmore-pdf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div id="wrap">
<div class="my_box">
<div class="field_box"><input type="textbox" name="name" id="name"></div>
<div class="button_box"><input type="button" name="submit" id="submit" value="Add More"
onclick="add_more()"></div>
</div>
</div>
<input type="textbox" id="box_count" value="1">
<style>
#wrap{width:20%;}
.my_box{width:100%; padding-bottom:36px;}
.field_box{float:left;width:80%;}
.button_box{float:left;width:20%;}
</style>
<script src="jquery-3.6.0.min.js"></script>
<script>
function add_more(){
jQuery("#wrap").append('<div class="my_box"><div class="field_box"><input type="textbox"
name="name" id="name"></div><div class="button_box"><input type="button" name="submit"
id="submit" value="Remove" onclick="add_more()"></div></div>');
var box_count=jQuery("#box_count").val(box_count);
box_count++;
}
function remove_more(){
}
</script>