the tabs are working fine but I need to trigger the NEXT and PREV buttons that currently don’t make the tabs selected
cloud you help me with that?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take advantage of the existing click handler that you have. When you click next, manually trigger the click handler on the next tab, by calling
.trigger('click'). I also put the changeTab code in a common call, so you don’t have to replicate code in the next and previous click handlers:Demo: http://jsfiddle.net/baKYK/
That being said, jQuery UI provides a lot of functionality automatically. Is there a reason you aren’t using it?