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.
1 parent a4ba9f3 commit 3125d42Copy full SHA for 3125d42
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