dimanche 19 avril 2015

Page scrollbar disappears after using jquery.remove()

I have a page with a table, where user can request to delete each row. If user decides to do so, a query is sent to the server to delete the content, and if the query is successful, I remove the row from the table using a jquery code like this:



$('#RowId' + id).remove();


Where id is the ID of the row user just deleted. This works, and I can see the row is removed, but the side-effect is that the scrollbar on the page also disappears, and I can't scroll in the whole page any more, until I refresh the page again!


I can't find any clue why this is happening. I have only tested it on Chrome 42/Ubuntu 12.04 so far. Any idea what is the problem?


Thanks


Aucun commentaire:

Enregistrer un commentaire