jQuery — библиотека JavaScript, фокусирующаяся на взаимодействии JavaScript и HTML. Библиотека jQuery помогает легко получать доступ к любому элементу DOM, обращаться к атрибутам и содержимому элементов DOM, манипулировать ими. Также библиотека jQuery предоставляет удобный API по работе с Ajax.
functionThe function whose context will be changed.
ContextThe object to which the context (this) of the function should be set.
jQuery.proxy( context, name )
contextThe object to which the context of the function should be set.
NameThe name of the function whose context will be changed (should be a property of the context object).
This method is most useful for attaching event handlers to an element where the context is pointing back to a different object. Additionally, jQuery makes sure that even if you bind the function returned from jQuery.proxy() it will still unbind the correct function if passed the original.