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

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

ruby - Net::HTTP extremely slow responses for HTTPS requests -

command line - Use qwinsta in PowerShell ISE -