Widgets > wijaccordion > wijaccordion Tutorial > wijaccordion Step 2 of 3: Initializing the Widget |
In the previous step, you added markup to add the content that will appear in the accordion panes. Now you can add the jQuery script to initialize the widget.
After the closing </div>
tags you added in the previous step, enter the following jQuery script to initialize the wijaccordion widget:
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$("#accordion").wijaccordion({
header: "h3"
});
});
</script>