To Nicolas' solution, the following worked for me as that answer didn't have form="button" on account of which it started behaving as post form...due to the fact I already have one submit form. It didn't perform for me ... and now you can either incorporate a class on the button https://eduardonaxnv.isblog.net/the-5-second-trick-for-learn-more-56573844