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

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

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