I have a markup like the one below and I'm trying to hide the "some_row" TR.
<div id="sortable"> <table> <tr><td>Some Title 1</td></tr> <tr class="some_row"><td><textarea ...></td><tr> </table> <table> <tr><td>Some Title 2</td></tr> <tr class="some_row"><td><textarea ...></td><tr> </table> </div>
Here is what I tried:
$(function () { $("#sortable") .sortable({ helper: function (e, o) { o.find("#some_row").hide(); return o; }, start: function () { $(".some_row").hide(); }, stop: function () { $(".some_row").show(); } }) .disableSelection(); });
Initially, I started with start and stop events, then added helper , because, what I guess, this is the cloned selected row, it has a hidden element some_row, but with the same height.
In any case, the above works fine, but it seems the widget still takes into account the original heights of the surrounding divs.
Is there anything I can do to save this idea?
source share