Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Web-development
  3. Question
Web-development

How to use nextElementSibling in Lightning Controller

Asked by Danilo Guidi Aug 1, 2021 1.2K views 1 answer
Share

About this question

  • I am trying to use the nextElementSibling in liightning controller but its showing error, what is the alternative of nextElementSibling to use, below is the sample code.

Lorem ipsum dolor ea commodo consequat.

<button class="btm" aura:id="btId" onclick="{!c.open}" fdprocessedid="wf7bc8">Section 3</button>

Lorem ipsum ex ea commodo consequat.

Here is the controller code

open : function(component, event, helper) { var acc = component.find("btm"); var i; for (i = 0; i < acc xss=removed xss=removed panel.style.display = "none" panel.style.display = "block">

Your answer

1 Answer

More Web-development discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest from the JanBask Blog

Guides, tips and career advice from JanBask experts.