I'm using a multipart registration that renders each successive form when the next button is pressed and is not faded. The button starts faded. For the first form I have (much simplified):
<script>
if (registrationStage == 0 && $("#form").valid()) {
nextBtn.removeClass("faded");
};
</script>
I know that the form is valid because ("#form").validate{//foo} is working properly and not giving errors. I'm also able to remove the class if I wrap it in a $("#foodiv").click( function() { // above code}); function. Is there a way to make it so that it's listening for those conditions to be true in order to unfade the next button?