Saturday, December 31, 2011

legacy jQuery UI 1.7.3 accordion

When using jquery UI 1.7.3, it is required to include the header argument.  The documentation at http://jqueryui.com/demos/accordion/ did not state that explicitly, and could cause severe head-scratching and testing of imaginary bugs.

So the code should actually look like

$("#accordion").accordion({ header: "h3" });

No comments: