jQuery UI selectable won't work with anything besides '#selectable'

Posted by Ross Murphy on Stack Overflow See other posts from Stack Overflow or by Ross Murphy
Published on 2010-04-16T15:10:41Z Indexed on 2010/04/16 15:13 UTC
Read the original article Hit count: 279

Filed under:
|
|

I am trying to use 2 instances of the jquery selector UI on my site and it won't seem to work with anything besides '#selectable' as the ordered list id.

Here is my code..

    <script type="text/javascript">
    $(document).ready(function() {
        $("#selectable").selectable();
    });
</script>

<ol id="selectable">
    <li class="ui-widget-content">Item 1</li>
    <li class="ui-widget-content">Item 2</li>
    <li class="ui-widget-content">Item 3</li>
    <li class="ui-widget-content">Item 4</li>
    <li class="ui-widget-content">Item 5</li>
    <li class="ui-widget-content">Item 6</li>
    <li class="ui-widget-content">Item 7</li>
</ol>

But if i try to use something other than selectable, it doesn't work.. anyone have similar issues?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ui