-
-
Save galtenberg/949680 to your computer and use it in GitHub Desktop.
Removing the jQuery Example plugin from operating on an element.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Let's say your element '#example' has already been bound | |
* with $('#example').example(). | |
*/ | |
/* This will get rid of the example immediately. | |
* Note that this will not return the original jQuery object so | |
* we can't chain anything onto this call. | |
*/ | |
$('#example').triggerHandler('focus'); | |
/* Unbind the functions which populate the field. */ | |
$('#example').unbind('focus').unbind('blur'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment