Im trying to pass parameters to myFunction, but it seems to be causing issues because it is inside a jQuery function. Any tips?
//this works fine
myFunction(1);
//this doesn't work fine!
$('myObj').fadeOut(1000, myFunction(1));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Might be a bit excessive, but did you try calling the function in the callback?