cancel
Showing results for 
Search instead for 
Did you mean: 

How to run jquery after the form elements(DOM elements) finished loading?

Former Member
0 Kudos

Hi,

I have to run jquery once the form elements gets loaded completely.. is thr any default function which gets called once dom is loaded... Jquery which is used is to hide textbox of fileuploader and change the text "browse" to upload icon.. Implementation is like i hav a toolpage wid scrollcontainers..inside scrollcontainer i have form with fileuploader.. onload of the form i want to change default file uploader to button wid upload icon in it which behaves like a fileuploader..

Thanks,

Ananthi.

Accepted Solutions (0)

Answers (2)

Answers (2)

saivellanki
Active Contributor
0 Kudos

Hi Ananthi,


For every control, there is an addEventDelegate method, you can try something like this:


var oForm = this.getView().byId("oForm"); //Get hold of form

oForm.addEventDelegate({

     onAfterRendering: function(){

     //Now Form is loaded, here you can handle the logic

     }

}, oForm);

Regards,

Sai.

Former Member
0 Kudos

In simple, functionality of this in below format