function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sandeep.sainisandeep.saini 

Accessing DOM elements

Hi All,
       How we add DOM elements for eg. DIV,P etc to component through javascript controller? One more question - Can we use jquery in lightning component? 
Himanshu ParasharHimanshu Parashar
Hi Sandeep,

Here is the documentation to add component dynamically.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm

Yes, You can use jquery in lightning component as well.

Let me know if you have any other question

Thanks,
Himanshu