I am newbie to jQuery,
can someone explain what this code does:
$("#currency form").submit(function(e) {
triggers.eq(1).overlay().close();
return e.preventDefault();
});
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.
The first line begins a function that handles the
submitevent of allformtag(s) in the element with IDcurrency.Documentation: Selectors,
submiteventThe second line closes an overlay in the second element in the
triggersvariable.Documentation:
eqmethod, overlay pluginThe third line tries to prevent the submit, but isn’t completely correct. (It should be
e.preventDefault();and/orreturn false;)Documentation:
event.preventDefault, event handlers