accordion.js 628 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // FOR FAQS
  2. jQuery(document).ready(function($){
  3. var panels = $(".faq-ans").hide();
  4. panels.first().show();
  5. $(".faq-que").click(function(){
  6. var $this = $(this);
  7. panels.slideUp();
  8. $this.next().slideDown();
  9. });
  10. });
  11. // FOR ORDER LIST
  12. jQuery(document).ready(function($){
  13. var panels = $(".orderlist-body").hide();
  14. panels.first().show();
  15. $(".orderlist-head").click(function(){
  16. var $this = $(this);
  17. panels.slideUp();
  18. $this.next().slideDown();
  19. });
  20. });