$('.autocomplete').on("listviewbeforefilter", function (e, data) {
will work when unordered list is already on the page
<ul class='myclass' data-role='listview' data-inset='true' data-filter='true'>
However if I inject the unordered list, it does not work.
For greater clarity, try my js fiddle! You will see the first listview works, but those subsequently added, do not work