@dmhendricks/jquery-waituntilexists

1.0.0 • Public • Published

License NPM Downloads DigitalOcean Twitter BrowserStack

jquery.waitUntilExists.js

jQuery plugin that runs handler function once specified element is inserted into the DOM.

Original author: Brandon Belvin

npm install @dmhendricks/jquery-waituntilexists

Usage

<script src="https://cdn.jsdelivr.net/gh/dmhendricks/jquery-waituntilexists/jquery.waitUntilExists.min.js"></script>
$( '#selector' ).waitUntilExists( function() {

	// Perform some logic
	console.log( $( this ).attr( 'id' ) );

	// Optionally remove the listener when finished
	$( this ).waitUntilExists( 'remove' );

});

Analytics

Dependents (0)

Package Sidebar

Install

npm i @dmhendricks/jquery-waituntilexists

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

8.78 kB

Total Files

5

Last publish

Collaborators

  • dmhendricks