Button disable and enable
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.
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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:
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests