Skip to content

Instantly share code, notes, and snippets.

@kparms
Created March 12, 2014 19:29
Show Gist options
  • Save kparms/9514491 to your computer and use it in GitHub Desktop.
Save kparms/9514491 to your computer and use it in GitHub Desktop.
Reflow: Refresh Examples and Fix
From the example on: http://view.jquerymobile.com/1.3.1/dist/demos/examples/tables/reflow-refresh.html
You must refresh your table and use .trigger('create') to avoid the duplicated label
try to use this :
var row = "<tr><td></td></tr>"
$("#YourTable").append(row);
$("#YourTable").trigger("create");
$("#YourTable").table("refresh");
if you have a loop try to use :
for()
{
var row = "<tr><td></td></tr>"
$("#YourTable").append(row);
}
$("#YourTable").trigger("create");
$("#YourTable").table("refresh");
http://stackoverflow.com/questions/17586494/jquery-mobile-reflow-table-refresh-issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment