[Solved] Node DOM manipulation on the page after a POST

[ad_1]

I finally did this.
You put both pages inside the one page.
The two contents go to separate divs.

Then you use something like this code:

<script>
    document.querySelector('.div2').style.display = "none";
    document.querySelector('form').addEventListener("submit", function(e){
            document.querySelector('.div1').style.display = "none";
            document.querySelector('.div2').style.display = "block";
    });
</script>

[ad_2]

solved Node DOM manipulation on the page after a POST