updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
+23
View File
@@ -0,0 +1,23 @@
$(document).ready(function () {
var max_fields = 4; //maximum reference area/name divs allowed
var x = 1; //initial reference area/name div count
$(".add_field").on("click", function (e) {
e.preventDefault();
if (x < max_fields) {
x++;
var copy = $('.copy').clone();
copy.attr("class", 'row input_fields_wrap');
copy.attr("id", 'copy' + x);
copy.append('<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a>');
copy.insertAfter('.copy');
}
});
$(".input_fields_wrap").on("click", ".remove_field", function (e) {
e.preventDefault();
$(this).parent('div').remove();
x--;
});
});