Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to make jQuery slideToggle() for the list?

Asked by Ankit Chauhan Jul 19, 2021 337 views 1 answer
Share

About this question

I try to make a list of panels with same toggle-effect. But I get just first working element. How can I make it for the list?

[removed][removed]
CSS:
<style> #flip { padding: 5px; border: 2px solid #e0ebeb; border-radius: 5px; } #panel { padding: 50px; display: none; background-color: #66c2ff; }
JS:
[removed] $(document).ready(function(){ $("#flip").click(function(){ $("#panel").slideToggle("slow"); }); }); [removed]
HTML:
Click to slide the panel down or up {!list.Id}
Hello {!list.Name}!

How can i make jQuery slideToggle() for the list?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

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

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.