WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

JavaScript (JS) code for accordion to toggle plus minus signs

Submitted by barnettech on Fri, 06/30/2017 - 11:54


+(function($) {
+ $( "#accordion" ).accordion({
+ collapsible: true
+ });
+ $('h3').click(function() {
+ $(this).siblings().removeClass('minus');
+ $(this).toggleClass('minus');
+ });
+})(jQuery);