I have this code tested in w3school
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<b>Books</b>
<br>
Author<br>
<div id="author"></div>
<br>
<script>
var getvar = "books.xml";
$( "#author" ).load("books.xml author");
</script>
</body>
</html>
This is working... now I need to replace the books.xml with the variable getvar
This code is not working
<script>
var getvar = "books.xml";
$( "#author" ).load("getvar author");
</script>
Any help how to replace with the getvar variable?