How to Updating a List View in Jquery Mobile

In this web programming tutorial  we will learn that how can can Updating a List View in Jquery mobile.
it is most complex element that jQuery Mobile produces, and is also one of the most common that we’ll use in our application. below code will help us how to update the jquery list view in jquery mobile.

<script>
// Initialize the list view
$("ul.twitter-feed").listview();
var updateTweets = function() {
// Go get more tweets and prepend them to the list and then
// refresh the list view.
var strNewTweetsHtml = getNewTweets();
$("ul.twitter-feed").prepend(strNewTweetsHtml).listview("refresh");
}
</script>

Admin

A Software Engineer, Social Media Marketing Expert, writer,

Post a Comment

Previous Post Next Post