Button disable and enable


Posted by Dan_C - Dec 19 ’14 at 02:17

Hi Dmitry,

When all the required fields on a particular tab are complete, I'd like to then enable a "Next" button to go on to the next tab.

I've got the hiding/showing/selecting tabs taken care of thanks to your other responses.

How do I disable and enable a specific next button?

Once I have that I'll add a .change(functionx) to check that all the fields on that tab are not empty and, if true, enable the button.

Thanks again.

  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 9 years 4 months 11 days
    #1 by Dmitry Kozlov Dec 22 ’14 at 08:06


    Please, aasign a CSS class to a particuar button e.g. next-button and use it in the JS-editor to get the button and disable/enable it following way:

    $('.next-button').prop('disabled', true); // Disable the button
    $('.next-button').prop('disabled', false); // Enable the button
  • Dan_C
    Member for: 8 years 2 months 5 days
    #2 by Dan_C Dec 22 ’14 at 02:37

    [#1]:  Excellent - thanks.

Displaying 1 to 2 of 2 messages