can i dynamically insert a new li into Split button list?
Hi Everyone,
I try to create a Split button list dynamically, since all the item are retrieve in runtime.
what I did is, I define a ul like the following:
- <ul id="timer-list" data-role="listview" data-split-icon="delete" data-split-theme="a">
then in runtime, I use JQuery to insert new li into the ul.
- $("#timer-list").append('<li id="' + itemId + '">\
<a href="#">\
Some Content\
</a>\
<a href="#" title="Action"></a>\
</li>');
but the list doesn`t has proper style. anyone know how can I fix it?