Hacker Monthly #24 by Netizens Media

Hacker Monthly #24 by Netizens Media

Author:Netizens Media
Language: eng
Format: mobi, epub, pdf
Publisher: Netizens Media
Published: 2012-05-02T10:04:40+00:00


Differences Between jQuery bind(), live(), delegate() and on()

By ELIJAH MANOR

I’ve seen quite a bit of confusion from developers about what the real differences are between the jQuery .bind(), .live(), .delegate(), and .on() methods and when they should be used.

Before we dive into the ins and outs of these methods, let’s start with some common HTML markup that we’ll be using as we write sample jQuery code.

<ul id="members" data-role="listview" data-filter="true">

<!-- ... more list items ... -->

<li>

<a href="detail.html?id=10">

<h3>John Resig</h3>

<p><strong>

jQuery Core Lead

</strong></p>

<p>Boston, United States</p>

</a>

</li>

<!-- ... more list items ... -->

</ul>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.