diff --git a/README.md b/README.md index 475e7db..04d0c5a 100644 --- a/README.md +++ b/README.md @@ -27,30 +27,30 @@ Also: ## Usage -``` +```html
    -
  1. Some content
  2. -
  3. -
    Some content
    -
      -
    1. Some sub-item content
    2. -
    3. Some sub-item content
    4. -
    -
  4. -
  5. Some content
  6. +
  7. Some content
  8. +
  9. +
    Some content
    +
      +
    1. Some sub-item content
    2. +
    3. Some sub-item content
    4. +
    +
  10. +
  11. Some content
``` -``` - $(document).ready(function(){ +```javascript +$(document).ready(function(){ - $('.sortable').nestedSortable({ - handle: 'div', - items: 'li', - toleranceElement: '> div' - }); + $('.sortable').nestedSortable({ + handle: 'div', + items: 'li', + toleranceElement: '> div' + }); - }); +}); ``` Please note: every `
  • ` must have either one or two direct children, the first one being a container element (such as `
    ` in the above example), and the (optional) second one being the nested list. The container element has to be set as the 'toleranceElement' in the options, and this, or one of its children, as the 'handle'.