Posts by João Vitor Natali • 1 point
3 posts
-
0
votes1
answer51
viewsA: AJAX in pure JS (using Xmlhttprequest)
You are not passing the form on the request you are making function notRefresh(el){ el.preventDefault(); var request = new XMLHttpRequest(); request.open('POST', el.getAttribute("action"), true);…
-
0
votes1
answer33
viewsA: How to import libraries directly from index
Use script import more than once: <script src="node_modules/php/index.js"></script> <script src="node_modules/execa/index.js"></script> Use as many times as you need, but…
-
-2
votes1
answer88
viewsA: How to convert an HTML to text using Javascript
Use the innerHTML function to capture html. let elemento = document.querySelector("#modal-body") let html = elemento.innerHTML From there, you will have the html content of the div in text format to…