Page 1 of 1

Button disable and enable

Posted: 19 Dec 2014
by Dan_C
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.

Re: Button disable and enable

Posted: 22 Dec 2014
by Dmitry Kozlov
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:

Code: Select all

$('.next-button').prop('disabled', true); // Disable the button
$('.next-button').prop('disabled', false); // Enable the button

Re: Button disable and enable

Posted: 22 Dec 2014
by Dan_C
Excellent - thanks.