6 lines
218 B
JavaScript
6 lines
218 B
JavaScript
function loadContentForm(url,target) {
|
|
fetch(url)
|
|
.then(response => response.text())
|
|
.then(data => {target.innerHTML = data;})
|
|
.catch(error => console.error('Error loading form:', error));
|
|
} |