Button disable and enable

rss

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
    Admin
    Member for: 6 years 10 months 25 days
    #1 by Dmitry Kozlov Dec 22 ’14 at 08:06

    Hi,

    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
    Member for: 5 years 8 months 20 days
    #2 by Dan_C Dec 22 ’14 at 02:37

    [#1]:  Excellent - thanks.

Displaying 1 to 2 of 2 messages