NetTalk Central

Author Topic: how to make form with accordion tabs with next and previous buttons  (Read 2378 times)

kashiash

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
i make form with tabs in accordion "mode", but user wants to can switch on tabs in two ways : clicking on accordion tab headers and additional by next previous buttons.
how to add actions for buttons to switch accordion tabs ?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: how to make form with accordion tabs with next and previous buttons
« Reply #1 on: April 19, 2010, 10:03:49 PM »
The short answer is;

make a button on the form, with a JavaScript call to the accordion.activate method
(where accordion is the name of the accordion).

The jQuery docs are here (http://jqueryui.com/demos/accordion/#method-activate)

If you're not that comfortable with JavaScript though, then the answer is somewhat longer.

cheers
Bruce