removing elements from html with javascript
java springboot jsp
Preface: complete front-end noob and javascript neophyte.
Goal: if an object is not added to the DOM remove some elements already present
IndexController.java
boolean isDeleteAddButtons = true;
if( isDeleteAddButtons ) {
mv.addObject("this_might_work", true);
}
index.jsp ( assume the 3 elements are present and functional)
......