I have some jQuery function:
rfx.jQuery(function(){
rfx.jQuery(".form-row.errors").blur(some_function(this))
});
But ‘this’ is HTMLDocument and not a list of selector return values. How can I get reference to list of elements?
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 result of the selection itself ie
rfx.jQuery(".form-row.errors")will be an array of the returned elements.However in your blur event…
See this JS fiddle Example and tab between the input boxes.
You can’t access the full selection from within the blur without either:
a) Selecting again within the
blur()function…b) Using a closure, such as…
However, in this second method, the
var formRowErrorswill only contain the selection at the time you bind ie it is not “live”