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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -