Create a search input and assign an id.
<input type="search" id="custom-filter" />
In ul
, add data-input
attribute with value the id of the search input starting with #
hash tag data-input="#custom-filter"
.
<ul data-role="listview" data-filter="true" data-input="#custom-filter">
Create a custom style and add it to #custom-filter
div to have the styles applied on the input.
$("#custom-filter").closest("div").addClass("styles");