jquery - Bookmark Bootstrap Carousel -
assume there 5 items in carousel , add html bookmark 2nd item of bootstrap carousel. know how bookmark works in different pages don't know how capture carousel item through url.
it in de docs
.carousel(number)
cycles carousel particular frame (0 based, similar array).
create javascript function:
function gotoslide(number) { $("#carousel").carousel(number); }
and then, add onclick
event on link.
<a href="#" onclick="javascript:gotoslide(2);">go slide #2</a>
Comments
Post a Comment