Skip to main content

Difference between bind, live, and on.

Entry JQuery
Quick Answer .bind() attaches to existing elements only - doesn't work for dynamically added elements; removed in jQuery 3. .live() was deprecated - attached to document, caught all events but was inefficient. .on() is the current standard - attaches to a parent, handles dynamic elements via delegation ($(parent).on("click", ".child", fn)), and is efficient.

Answer

.bind() for current elements, .live() deprecated, .on() recommended for dynamic elements.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice