Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, you are correct (I can't edit right now). You need to return a new function, and a reference actually.

for DOM part, I didn't understand your question. However, the right way to do it is

  $(DOMelement:eq(i)).each();
to iterate through each element.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: