Hi all,
I have just started playing around with the JQuery Mobile Framework which i am integrating into a custom CMS.
I have the templates all setup but i need some advice on how i can manipulate lists within the content.
The content is database driven so i need to insert some code to the ul to create the default list view.
Basically, i need to change:
- <ul>
to the following:
- <ul data-role="listview" data-inset="true">
I have added this so far which kind of works but im sure its not the best way to do it.
- jQuery(document).ready(function () {
$('ul').attr('data-insert', 'true');
$('ul').attr('data-role', 'listview');
$("ul").addClass("ui-listview ui-listview-inset ui-corner-all ui-shadow");
});
The output is not as i expected.
Any advice would be appreciated.
Thanks