Drupal.behaviors.hideButtons = function (context) { $("input.privatemsg-action-button").hide(); };