I have a listview, with a search filter, and almost 300 <li>.
Refreshing the listview takes around 7s, but sometimes I just want to update the data-icon of a single <li>.
Is there a way to refresh a single <li> without refreshing the full listview?
Edited:
Example:
<ul data-role="listview" id="myList">
<li id="a" data-icon="check"><a href="">A</a></li>
<li id="b" data-icon="check"><a href="">B</a></li>
</ul>
Solution:
$('#a span').removeClass ('ui-icon-check');
$('#a span').addClass ('ui-icon-refresh');
Does something like this work?
JS
HTML