Skip to content

Instantly share code, notes, and snippets.

@mudge
Created April 18, 2011 06:41
Show Gist options
  • Save mudge/924909 to your computer and use it in GitHub Desktop.
Save mudge/924909 to your computer and use it in GitHub Desktop.
Removing the jQuery Example plugin from operating on an element.
/* 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