1

here is my code :

string script = "GoNext()";
ScriptManager.RegisterClientScriptBlock(this, GetType(), "next", script, true);

client side :

$(document).ready(function () { 
     function GoNext() {
          $("#wizard").scrollable().next();
     }
});

i am getting a console error saying GoNext is undefined

1 Answer 1

3

Do not put the function in $(document).ready(function () { block as its scope becomes within the ready block and it is not available in global scope.

function GoNext() {
     $("#wizard").scrollable().next();
}
Sign up to request clarification or add additional context in comments.

Comments

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.