javascript - Scroll issue on table row removal -
i have following html code: <tr id="cv643" ondblclick="oncve(643)"> <td colspan="2"> <a onclick="btncva(41,643)" href="#"> actions <span class="badge badgew">2</span> </a> </td> <td>confirm appointment</td> <td>29-12-2015</td> <td style="color: red">12-01-2016</td> <td style="color: red">pending</td> <td colspan="2"></td> </tr> client code is: function btncva(cpkey, cvkey) { var sel, tbl; if (onhidecva()) { // test if action list there $.ajax call create table row id 'reccva' } } function onhidecva() { var sel, rc=1; if ((sel = document.getelementbyid('reccva')) !== null) { sel.parentnode.removechild(sel); rc=0; } return rc; } when actions button clicked, btncva creates row underneath reccva st...