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

Not exactly, jquery offers it's own API which is what makes it powerful and allows for it's method chaining, plugin system etc. A $(".className") returns a jquery object , not a DOM element.


>Not exactly, jquery offers it's own API

Yes, that's the definition of a wrapper: it offers it's own API.


jquery is really it's own abstraction, the jquery API allows you to interact with jquery objects which can do DOM manipulation on your behalf. This library literally returns DOM objects.




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

Search: