Question: please help, my html is not showing data from the google api(name of book, author, and so on),, when i type in the search box
please help, my html is not showing data from the google api(name of book, author, and so on),, when i type in the search box and press enter it just stays there.
function BSearch(){
var search = document.getElementById('search').value;
document.getElementById('results').innerHTMl = "";
console.log(search);
$.ajax({
url: "https://www.googleapis.com/books/v1/volumes?q=" + search,
dataType: "json",
success: function(data) {
for(i = 0; i < data.items.length; i++){
results.innerHTML += "
" +data.items[i].volumeInfo.title.authors.publishedDate.imageLinks.thumbnail + "
";}
},
type: 'GET'
});
}
// document.getElementById('button1').addEventListner('click', BSearch, false);
Book Search
"search" placeholder="title or author">
Step by Step Solution
There are 3 Steps involved in it
The question is incomplete The issue lies primarily in the lack of a detailed description of the problem such as error messages console errors or netw... View full answer
Get step-by-step solutions from verified subject matter experts
