So I put the 2nd code in front of the 1st...no error, but it doesn't work.
So I put the 2nd code in front of the 1st...no error, but it doesn't work.
Please show us the whole code you use.
Also put this line in the end to see what you have in bookidn variable.
prealert("Bookid = " + bookid);/pre
What does alert show is stored in bookid?
This is the text:
alert("Bookid = " + bookid);
I mean when you run this code. What does alert message say?
Do you have any error in browser console?
You have incorrect bookid, should be something like 53ba2599e4b09f5c7d50390f
Incorrect bookid? I don't remember ever putting one it.