Attempting to set up a bootstrap build, where clicking on certain states on one page will direct the user to a specific slide on another page.
I'm struggling to grasp this concept. A friend of mine, who is a Javascript developer, provided some code for me, but I am having difficulty interpreting it.
<script>
function goToSlide(x) {
console.log('going to slide '+x)
$("#myCarousel").carousel(x);
}
</script>
So essentially, when a user clicks from page 1, they will be directed to a particular slide on page 2.