Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Frank Ralf/jQuery.

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Some examples and proof of concept for using jQuery for enhancing Moodle usability.

Collapsible course list

jQuery('.section h3').wrapInner('<a href="#" />')
  .click( function(event) {
    event.preventDefault();
    jQuery(this).parent().find('ul.section').toggle();
})
jQuery('ul.section').hide();