Dialog jQuery Event Initiate Help

Created on 11 August 2023, over 1 year ago
Updated 4 June 2024, 5 months ago

Thank you very much for this really helpful module.

I need to set the height of one of the html elements inside the dialog using jQuery/Javascript. I am having difficulty working out how to run my script when the dialog window opens. Is there a specific jQuery/Javascript event that I need to attach my script to, so that it runs when the dialog window is opened? Any help is much appreciated.

I guess this might be helpful to document for other people to be able to manipulate elements in Javascript.

The beginning of my script.js file looks like this:

(function($) {
  Drupal.behaviors.myBehavior = {
        attach: function (context, settings) {
          my_function...
πŸ’¬ Support request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom bmango

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024