javascript - Refreshing Listview after Append or HTML -


I am searching for this problem, but nobody works for me.

I have this HTML

  & lt; Div id = "divHistorialListView" & gt; & Lt; Ul data-roll = "list view" id = "list history" & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

and it's a javascript function

  $ ("#listHistorial"). Attached ("
  • And I run the function multiple times. First run this list correctly formatted the view. Second (and second after all!) The format wrong! (Like a normal UL or worst)

    I also tried:

      $ ("#listHistorial") Listview ("Refresh");  

    and

      $ ("#listHistorial"). Refresh ();  

    But when I try these, some code does not run in javascript (as if there was an error and the function was completely ignored)

    I also call the JQuery mobile site and there they use them ... but there is no solution!

    Please help!

    try this

      $ ("#listHistorial"). Listview () Listview ("Refresh");  

    Comments

    Popular posts from this blog

    apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

    c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

    c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -