--- /dev/null
+function click_add ()
+{
+ alert ("add");
+
+ $("#spanName").remove();
+ $("#name").addClass("is-invalid");
+ $("#name").parent().append("<span id=\"spanName\" class=\"invalid-feedback\">pippolo</span>");
+}
+
+function click_remove ()
+{
+ alert ("remove");
+
+ $("#name").removeClass("is-invalid");
+ $("#spanName").remove();
+}
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css\">\n"
"</head>\n"
"<body>\n"
- "<div class=\"container\">\n");
+ "<div class=\"container\">\n"
+ "<button type=\"button\" class=\"btn btn-primary\" onclick=\"click_add();\">Add</button>\n"
+ "<button type=\"button\" class=\"btn btn-primary\" onclick=\"click_remove();\">Remove</button>\n");
val = zak_cgi_main_get_parameter (zakcgimain, "filename");
if (val != NULL)
"<script src=\"https://code.jquery.com/jquery-3.5.1.slim.min.js\"></script>\n"
"<script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\"></script>\n"
"<script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js\"></script>\n"
+ "<script src=\"cgi.js\"></script>\n"
"</body>\n"
"</html>");