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

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

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

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

IT Professional Trainer with 15 years of experience in UI/UX Designer, UI Developer & UX Practices

Hi JK. Thats very interesting question you have posted. .bind() attacheds events to elements that exist or match the selector at the time the call is made. where as .live() works for existing and future matching elements.
Comments

Good at Jquery

Bind method only work for dom existed element not dynamically added tag. where as live work for all elements
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 Courses

.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 j Query 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 j Query 1.4 this was limited to the following events: click, dblclick mouse down, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup read less
Comments

View 16 more Answers

Related Questions

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
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?
BIG Data & HADOOP are Hot favorite in industry right now ! It will definitely help you ! But learn from a proper institution or trainer, else its waste. Best Wishes..
Indranil
How to improve j query and java script in quickly?
Try real time examples by logically thinking and practicing.
Avinash
How to deploy and host web application. Need completed process details.
Step 1 Get domain name like www.examplesite.com from domain name provider like http://www.bigrock.in http://www.GoDaddy.com Step 2 Get hosting space from hosting providing like http://www.hostgator.in http://www.bluehost.com Step...
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

what is jquery and why we use it ?
Jquery : - it is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development Advanctage of Jquery :- It...

jquery text method
How to use jquery text method?

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...

Some good resources
Clean Code by Robert C Martin, is available in my profile please download and read it, irrespective of what language you code in, it will change the way you code. Also if you code in Javascript read https://12factor.net/ https://blog.risingstack.com/javascript-clean-coding-best-practices-node-js-at-scale/ For...

How to be a good developer?
I think practice more and read less.see what the logic in the programs then you must be a good developer
B

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