UrbanPro

Learn jQuery from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Difference between bind and live method in jquery?

Asked by Last Modified  

18 Answers

Learn jQuery

Follow 1
Answer

Please enter your answer

Java with web technologies tutor

Based on jquery versions this click events methods varies live click depricated in latest version of jquery, bind will bind the click event for document elements for dymamic elements and live click also does same for dynamic generated html click events it will work but normal click willl work only static...
read more
Based on jquery versions this click events methods varies live click depricated in latest version of jquery, bind will bind the click event for document elements for dymamic elements and live click also does same for dynamic generated html click events it will work but normal click willl work only static html elements. read less
Comments

Tutor

bind() vs live() The basic difference between bind and live is bind will not attach the event handler to those elements which are added/appended after DOM is loaded. bind() only attach events to the current elements not future element.
Comments

Professional UI Developer and Trainer

But bind is deprecated after jQuery 1.6 version. So better to use 'on' or 'delegate' method instead of live.
Comments

Certified Scrum Master (CSM), Professional Scrum Master (PSM), WordPress, PHP

.bind() attached events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this...
read more
.bind() attached events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this was limited to the following events: click, dblclick mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup read less
Comments

I have 8+ yrs of industry working experience in PHP, MySQL, Javascript, JQuery, Ajax

bind() This method basically searches for all the elements and binds the same handler to all the matches found. The bind will not work on dynamically added elements because when bind scans the DOM tree, the element must be present in the tree otherwise the handler will not be applied live() Every...
read more
bind() This method basically searches for all the elements and binds the same handler to all the matches found. The bind will not work on dynamically added elements because when bind scans the DOM tree, the element must be present in the tree otherwise the handler will not be applied live() Every event is attached to the document itself and whenever that event occurs the event is passed to the top and at the top the event element selector and the event type are compared; if they match then the handler for that event is executed. It can also respond to the events that are generated by the dynamically added elements. read less
Comments

Software Professional Trainer with 26+ years of Experience in Software Design and Development

bind() attached events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. live() works for existing and future matching elements. Before jQuery 1.4 this...
read more
bind() attached events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. live() works for existing and future matching elements. Before jQuery 1.4 this was limited to the following events: click, dblclick mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup Always use delegate. The delegate() method behaves in a similar fashion to the .live() method, but instead of attaching the selector/event information to the document, you can choose where it is anchored. Just like the .live() method, this technique uses event delegation to work correctly. read less
Comments

IT Professional Trainer with 12 years of experience in IT Industry

.bind() attacheds events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this...
read more
.bind() attacheds events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this was limited to the following events: click, dblclick mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup read less
Comments

Web Master ( Web Design & Digital Marketing Trainer)

.bind() attacheds events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this...
read more
.bind() attacheds events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this was limited to the following events: click, dblclick mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup read less
Comments

Front end developer and Trainer having 7 years of experience

.bind(): This is the easiest and quick method to bind events. But the issue with bind() is that it doesn't work for elements added dynamically that matches the same selector. bind() only attach events to the current elements not future element. Above that it also has performance issues when dealing with...
read more
.bind(): This is the easiest and quick method to bind events. But the issue with bind() is that it doesn't work for elements added dynamically that matches the same selector. bind() only attach events to the current elements not future element. Above that it also has performance issues when dealing with a large selection. .live(): This method overcomes the disadvantage of bind(). It works for dynamically added elements or future elements. Because of its poor performance on large pages, this method is deprecated as of jQuery 1.7 and you should stop using it. Chaining is not properly supported using this method. .delegate(): The .delegate() method behaves in a similar fashion to the .live() method, but instead of attaching the selector/event information to the document, you can choose where it is anchored and it also supports chaining. .on(): Since live was deprecated with 1.7, so new method was introduced named ".on()". This method provides all the goodness of previous 3 methods and it brings uniformity for attaching event handlers. read less
Comments

IT Professional Trainer with 15 years of experience in IT Industry

.bind() attacheds events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this...
read more
.bind() attacheds events to elements that exist or match the selector at the time the call is made. Any elements created afterwards or that match going forward because the class was changed, will not fire the bound event. .live() works for existing and future matching elements. Before jQuery 1.4 this was limited to the following events: click, dblclick mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup.. read less
Comments

View 16 more Answers

Related Questions

I am a commerce graduate and having banking back ground.I want to pursue a course in BIG DATA- HADOOP AND R,How much beneficial it would be for me to get a job as certified business analyst?
Not to degrade you but a commerce stream and IT are really different, so I would recommend you go with cloud computing training first later you can upgrade to BIG DATA & HADOOP. All the best.:)
Indranil
How to improve j query and java script in quickly?
Try real time examples by logically thinking and practicing.
Avinash
What are the core features of jQuery?
The main features of jQuery include: -- DOM element selection functions -- DOM traversal and modification -- Events -- CSS manipulation -- Effects and animations -- Ajax -- Extensibility -- Utilities --...
Parvind
How to deploy and host web application. Need completed process details.
You can install Web Deploy by using the Web Platform Installer (Web PI) or the Web Deploy MSI.
Krishnachaitanya

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Pro Developer Program Syllabus
What you will learn in Pro-Developer Program: i. Introduction to Web Technologies. ii. Introduction to .Net - Features of .Net, CTS, CLS, CLR and MSIL. iii. C# & .Net Basics - Data Types,...

Mark And Sweep Algorithm in Javascript Memory Management
This algorithm reduces the definition of "an object is not needed anymore" to "an object is unreachable". This algorithm assumes the knowledge of a set of objects called roots (In JavaScript, the root...

jquery val method
How to use jquery val method?

Jquery Tab Create By Me In Jquery
How to make Tabs in JQuery?

jquery add class,remove class,toggle class video
https://www.youtube.com/watch?v=LUp1fYvEYgM

Recommended Articles

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for jQuery Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for jQuery Classes?

The best tutors for jQuery Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn jQuery with the Best Tutors

The best Tutors for jQuery Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more