0

Hey I am trying to do the nested sorting using jQuery I am getting a syntax error Can anyone figure it out I cant see any syntax error. My code

<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min"></script>

 <script type="text/javascript">
  $(document).ready(function(){
    $('ol.sortable').nestedSortable({
        disableNesting: 'no-nest',
        forcePlaceholderSize: true,
        handle: 'div',
        helper: 'clone',
        items: 'li',
        maxLevels: 3,
        opacity: .6,
        placeholder: 'placeholder',
        revert: 250,
        tabSize: 25,
        tolerance: 'pointer',
        toleranceElement: '> div',
        connectWith: '.sortable'
    });​
});
</script>

rest of the code is just HTML not logic till now. I am getting this error

SyntaxError: syntax error });? test.html (line 30, col 5)

Thanks

4

1 回答 1

0

I'm just guessing by the col number... remove the ; at the end of nestedSortable().

于 2012-08-02T11:13:11.807 回答