Disable accordion tabs

rss

Posted by SPTech - May 27 ’15 at 01:22

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.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 15 days
    #1 by Dmitry Kozlov May 28 ’15 at 05:17

    Hi,

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

    $('#fd_accordion-0 > h3').eq(0).hide();
    $('#fd_accordion-0 > div').eq(0).hide();
  • SPTech
    Member
    Member for: 6 years 6 months 10 days
    #2 by SPTech May 28 ’15 at 08:32

    [#1]: 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 ?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 15 days
    #3 by Dmitry Kozlov May 29 ’15 at 05:33

    [#2]: 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

     

Displaying 1 to 3 of 3 messages