Skip to content

FGRibreau/jQuery-plugin-attributeObserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery AttributeObserver Gittip

jQuery AttributeObserver allow developer to bind handler to listen to HTML element's attribute changes.

Usage

$('#el').AttributeObserver(attr || callback, callback, [delay]);

//Or in the real word:

$('title').AttributeObserver('text', function(oldValue, newValue){
	alert(['Page title changed from ',oldValue,' to ',newValue].join(''));
}, 1000);

//This only works with iFrame on the same domain
$('iframe').AttributeObserver('src', function(oldValue, newValue){
	alert(['iFrame src changed from ',oldValue,' to ',newValue].join(''));
}, 1000);

Donate

Donate Bitcoins

About

jQuery plugin for observing html element's property changes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published