Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (37 sloc) 1.03 KB
You should be able to sort the TR elements of this table, though the input and button elements should keep working.
<table id="sortablesTable">
<td><a href="#">row 1</a></td>
<td>row 1</td>
<td><input type="button"></td>
<td><a href="#">row 2</a></td>
<td><input type="text"></td>
<td><a href="#">row 3</a></td>
<td>row 3</td>
<div id="result"></div>
<script src="/depender/build?require=More/Sortables"></script>
thisSortables1 = new Sortables($('sortablesTable').getElement('tbody'), {
constrain: true,
clone: false,
snap: 6,
revert: true
$$('#sortablesTable button').addEvent('click', function(e){
$('result').adopt(new Element('p', {text: 'Clicked:' +'text')}));
$$('#sortablesTable a').addEvent('click', function(e){
$('result').adopt(new Element('p', {text: 'Clicked:' +'text')}));
Jump to Line
Something went wrong with that request. Please try again.