So I have a list, formated in following way:
<.ul data-role="listview" data-filter="true">
<.li>
<.h2>header<./h2>
<.p>description<./p>
<./li>
<./ul>
How can I filter it only by header part? I’d be grateful for quick answer:)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
jQuery mobile supports filtered lists Nativity, this should be fine for what you want to achieve.
http://jquerymobile.com/test/docs/lists/docs-lists.html#/test/docs/lists/lists-search.html
Edit:
This demonstrates how to hide and show elements based on the contents of < h2> from a search box. You may need to adapt it for your project but it should get you started.
http://jsfiddle.net/A3qFK/3/