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

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -