It may seem like this question has been asked and answered multliple times but it won't work for me. How to exclude an element from being dragged in sortable list?
The solution described here indeed prevents the row form being clicked and dragged but it won't prevent other elements from being dragged around it. I want the last row in the table to stay where it is no matter what. I don't want the user to be able to drag it nor do I want the user to be able drag other rows past it. The structure needs to look as follows:
<table ui:sortable>
<tbody>
<tr>
<tr>
..
<tr>
<tr> -----this row needs to stay
</tbody>
</table>