how to sort images
how to sort images
sortable seems to apply to nodes. I do not understand why the example
works
(the selection has 1 element) and why my modification does not work
function myselect(){
// var my_object_jquery=$(".sortableitem");
// var my_object_jquery=$("img");
var my_object_jquery=$("#picts");
my_object_jquery.sortable({});
}
$(document).ready(myselect);
I checked with firebug that I am getting 6 elements selecting the img
tag,
or the class sortableitem
but I cannot sort the images.
<div id="picts">
../images/Practice1/Practice1.Position1.JPG
...
the example works and is structured like this:
<script> $(document).ready(function(){ $
("#picts").sortable({}); });
</script>
<div>
<ul id="picts">
<li> ../images/Practice1/Practice1.Position1.JPG
</li>
the selection has tag ul, and dimension 1 only!
If I select the div with the id picts, I get one element, the div, but
the
images do not sort.
why do I need an li after the ul element? can someone help me and
explain
how it relates to the doc?