Page 1 of 1

Disable accordion tabs

Posted: 27 May 2015
by SPTech
Hi,

I have an accordion in the form, is it possible to disable individual tabs using javascript like tab control ?

Using tab control if I use the code below it is ok, I want to do the exact thing when using accordion.

$('#fd_tabcontrol-0').tabs('option', 'disabled', [<tabindex>]);

Thanks in advance.

Re: Disable accordion tabs

Posted: 28 May 2015
by Dmitry Kozlov
Hi,

You can hide a particular section by its index following way:

Code: Select all

$('#fd_accordion-0 > h3').eq(0).hide();
$('#fd_accordion-0 > div').eq(0).hide();

Re: Disable accordion tabs

Posted: 28 May 2015
by SPTech
Hi, thank you for quick reply.

The code above works well, it hides the section completely. Is there another option to disable section like on the tab control ?

Re: Disable accordion tabs

Posted: 29 May 2015
by Dmitry Kozlov
Hi,

Unfortunately, the accordion doesn't support such method. Our support team can implement a function that disables a section by its index, it will take 100 support minutes. If you're interested in it, please, pay for the support minutes in our store: http://spform.com/buy