@SempervivumJun 25.2020 — #@kiwis80#1619892fetch appears to only use json and my content pages are html pages.[/quote]No, JSON is widely used with fetch, but not necessaryly. You can load text as well: fetch('your-url').then(resp => { // return resp.json(); return resp.text(); // Return text instead of decoding JSON }).then(responseText => { document.querySelector('selector-of-destination').innerHTML = responseText; }); If your jQuery ajax is working and you are using jQuery anyway I do not see any reason for changing the working procedure.
@SempervivumJun 25.2020 — #how can I pass in a few variables to the fetch request, such as an ID number[/quote]That's a bit different when using the fetch API and there are several ways to do it:
1. Create a query string by yourself in order to add GET parameters: fetch(<span><code>yourscript.php?id=${theid}&amp;var2=${anotherVar}</code></span>).then(resp => { return resp.text(); }).then(responseText => {