jQuery BBQ with next and previous buttons
How would one go about applying jQuery BBQ links to a page that doesn't use numbered tabs, but instead uses previous and next buttons to change the corresponding content areas? Thanks开发者_高级运维!
You need to be more specific but basically the previous
and next
buttons would just need to change window.location.hash
and the following function would pick up that change:
$(window).hashchange(function() {
var hash = window.location.hash;
// deal with the hash here
});
$(window).hashchange();
精彩评论