Created
July 27, 2012 19:23
-
-
Save robballou/3189989 to your computer and use it in GitHub Desktop.
Re-attaching Drupal behaviors to an element
This file contains hidden or 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
// remove the ajax-processed class from the element so that | |
// attachBehaviors() will update the element | |
$('#my-element-id').removeClass('ajax-processed'); | |
// now re-attach the behaviors to this element | |
Drupal.attachBehaviors($('#my-element-id')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment