In jQueryMobile, I have written a data-role="listview" component and I want to filter the data including its dividers. That is, when the user inputs some text to search, it may correspond to specific items or to dividers. In this last case, the whole divider and its subitems must be shown. The problem is that the default filtering mechanism ommits the dividers and I don’t know how to properly redefine the filterCallback function.
Does anyone know how to achieve this?
The code which I was trying is here.
Thanks in advance.
Well I have something:
JS
CSS
HTML