Skip to content

Instantly share code, notes, and snippets.

@galtenberg
Forked from mudge/gist:924909
Created April 30, 2011 13:46
Show Gist options
  • Save galtenberg/949680 to your computer and use it in GitHub Desktop.
Save galtenberg/949680 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