I have designed one sign-up form,in this form after getting all necessary values I will click submit button.
And while clicking that submit button I want to call one function and I want to pass the arguments to that function.
I have written code for this purpose,but the function is called first before getting the details.(i.e)after getting the details in sign-up form I need to pass these values to one function and I need to validate those values.
But what happened was,before getting the details the function get called.