I like the dropdown effect on this website biblegateway.com . First, I'm not sure whether it's appropriate to post links to other sites. I don't own this site, I just like the effect and was trying to replicate it for a site I'm building for books.
The effect is below the search bar when you click the dropdown list button. It allows you to view the list of books and then allows you to view the chapters when you click on any book.
Sorry for being new. I really need this I like it and would be very good for my books. I would like to list them just like on the site, for the old and new version on the right.
I have tried despite being new and here is how far I have come. Please help me finish this I have already spent days getting to this point. Thanks
$(document).ready(function() {
$("#toggle1").click(function() {
$(".bbl1").toggle()
});
});
$(document).ready(function() {
$("#toggle2").click(function() {
$(".bbl2").toggle()
});
});
$(document).ready(function() {
$("li.togglebk1").click(function() {
$(".bbl-chapters-container1").toggle()
});
});
$(document).ready(function() {
$("li.togglebk2").click(function() {
$(".bbl-chapters-container2").toggle()
});
});