I'm working with JQuery UI (rotating tabs) and I'd like to know how to stop the cycling when an onclick event occurs on one of the navigation tabs.
$(document).ready(function(){
$("#sws_featured > ul").tabs({fx:{opacity: "toggle"}})
.tabs("rotate", 5000,true);
});
I tried adding this code, right below (and also inside .ready) the code above but to no avail. I confirmed that this function below is receiving the onClick event however the rotating is not stopping.
$("#sws_featured > ul a").click(function(){
$("#sws_featured > ul").tabs("rotate", 0, false);
});
Must not be accessing the object correctly... Any ideas?