0

I have a wizard with a few steps and a few buttons like so:

<asp:linkButton CssClass="btn-primary" ValidationGroup="contact" Text="Next" ID="lbtnNext" runat="server" />

This control validates a few input fields. When no errors are thrown, so all input fields are filled in correctly I want to use jQuery to show the next step and update a progressbar.

How can I call a jQuery function after the lbtnNext button throws no validation errors?

1

1 Answer 1

1

Try like this:

var valid = false;

if(Page_ClientValidate(validationgroup))
{
   valid = true;
}

if(valid)
{

}
Sign up to request clarification or add additional context in comments.

1 Comment

YashPatel, I have updated your code, the casing of var and if was wrong, as was your locally scoped variable, and you should use a boolean not an integer for the condition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.