0

I was researching for document.createElement() and could not seem to find anything. Is there any way where I can use createElement in salesforce or any other Alternative as I need to create div dynamically.

5
  • 3
    This can help - salesforce.stackexchange.com/questions/243876/…
    – kurunve
    Commented Oct 7, 2022 at 9:39
  • 3
    Do explain why this markup approach won't work for your case<div if:true={flag} ...></div>.
    – Keith C
    Commented Oct 7, 2022 at 10:07
  • 2
    This is an X-Y Problem. Please explain what you're trying to do so that we can help you better.
    – sfdcfox
    Commented Oct 7, 2022 at 11:22
  • Check this one - salesforce.stackexchange.com/questions/244847/… Commented Oct 7, 2022 at 15:27
  • @sfdcfox I want to create a account hierarchy tree where I can drag and drop the account which will change the account hierarchy accordingly. My approach was to create dynamic divs for each account which will then give me flexibility to work around them.
    – Seiger
    Commented Oct 9, 2022 at 17:33

0

Browse other questions tagged .