[jQuery] sortable:how to with tables?
hi,
i tried to test interface sortables with a table structure which doesn't realy work.
is there a chance to get it running with a tablestructure or are there any other solutions.
i don't realy want to use
<div>
<span>
<span>
...
</div>
because i have to fix width of each Column
here my table test
<table border="1">
<tr class="sortableitem"><td>Item 1</td><td>Item 1a</td></tr>
<tr class="sortableitem"><td>Item 2</td><td>Item 2a</td></tr>
<tr class="sortableitem"><td>Item 3</td><td>Item 3a</td></tr>
<tr class="sortableitem"><td>Item 4</td><td>Item 4a</td></tr>
<tr class="sortableitem"><td>Item 5</td><td>Item 5a</td></tr>
<tr class="sortableitem"><td>Item 6</td><td>Item 6a</td></tr>
<tr class="sortableitem"><td>Item 7</td><td>Item 7a</td></tr>
</table>
<script type="text/javascript">
$(document).ready(
function () {
$('table').Sortable(
{
accept : 'sortableitem',
helperclass : 'sorthelper',
activeclass : 'sortableactive',
hoverclass : 'sortablehover',
opacity: 0.8,
fx: 200,
axis: 'vertically',
revert: true
}
)
}
);
--
Stefan Kilp
SK-Software, Entwicklung & Beratung
email: kilp@sk-software.de
fon : +49 6151 93344-0
fax : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-----------------------------------------------------
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/