🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@dmhendricks/jquery-waituntilexists

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmhendricks/jquery-waituntilexists

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

1.0.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

jquery

FAQs

Package last updated on 21 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts