I have the following list which is initially created by knockout.js
<div data-role="content">
<div id="PromoListDiv">
<ul id="List" data-bind="foreach: promotions">
<li data-bind="attr:{'data-status': ApprovalStatus}"><a data-bind="text: Title, attr: {href: ButtonLink}"></a></li>
</ul>
</div>
</div><!-- /content -->
and here is the code that calls the listview plugin in jquery
$('#List').listview({
autodividers: true,
autodividersSelector: function (li) {
var out = li.attr('ApprovalStatus');
return out;
}
});
I had attempted to add a custom attribute to the
Found out why it was not working
is incorrect as it does not correctly select the list element nor the correct attribute, this does: