From dd3213e918c36d5cef368a6025b7403af32c9200 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Wed, 6 May 2020 03:19:20 +0100 Subject: [PATCH] Dynamic form field names --- public/js/formbuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/formbuilder.js b/public/js/formbuilder.js index fda4bf1..a9daa91 100644 --- a/public/js/formbuilder.js +++ b/public/js/formbuilder.js @@ -4,8 +4,8 @@ $(document).ready(function() { var intId = (lastField && lastField.length && lastField.data("idx") + 1) || 1; var fieldWrapper = $("
"); fieldWrapper.data("idx", intId); - var fName = $(""); - var fType = $(""); + var fName = $(""); + var fType = $(""); var removeButton = $(""); removeButton.click(function() { $(this).parent().remove();