Sortables on DIVs

Sortables on DIVs


Hi all,
I'm trying to use the UI sortables plugin on a div which contains other
divs. These divs can be re-ordered by drag and drop, so I thought I'd
use the sortable plugin but I'm having trouble - am I missing something
obvious?
Script:
<script type="text/javascript">
<!--
$(document).ready(function() {
    $("#newslettercontent").sortable({
        "items": "> div"
    });
});
-->
</script>
HTML:
<div id="newslettercontent">
    <div id="div1">
        1
    </div>
    <div id="div2">
        2
    </div>
    <div id="div3">
        3
    </div>
    <div id="div4">
        4
    </div>
    <div id="div5">
        5
    </div>
    <div id="div6">
        6
    </div>
    <div id="div7">
        7
    </div>
</div>
Regards,
Michael Price









































    • Topic Participants

    • mike