How to get the image icons in the listview dynamically using jquery ?
Hi,i'm trying to get the images as icons in the listview dynamically in the home page.
My code: http://jsfiddle.net/EpTeL/1/
I have 3 image icons like 0sel.png, 1sel.png, 2sel.png in the "icons folder".How can i get this icons in listview dynamically using jquery.Can anyone help me.
i tried as:
$("#section_list").append('<li><a href="#chapter" id="' + order + '"><img src="icons/' + url + '" id="image" alt="Picture"/>' + section + ' </a> </li>');
$list.find('li').find('img:eq(0)').addClass("ui-li-thumb").each(function() {
$(this).closest("li").addClass($(this).is(".ui-li-icon") ? "ui-li-has-icon" : "ui-li-has-thumb");
});
Thanks in Advance