We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4ba9f3 + 3125d42 commit b40f3e3Copy full SHA for b40f3e3
js/script.js
@@ -16,7 +16,7 @@
16
17
$('#fields').on('click', '.remove', function (e) {
18
e.preventDefault();
19
- if (confirm("Are you sure to delete?")) {
+ if ($(".form-element").length > 1 && confirm("Are you sure to delete?")) {
20
$(this).parents(".form-element").remove();
21
$("#fields .form-element:last").find(".add-more").show();
22
}
0 commit comments