2
Using the same concept present in http://demos.jquerymobile.com/1.2.0/docs/lists/lists-search.html
I wonder if it is possible to just list the items when I search them in the searchbox. I don’t want everyone to be shown on when the box is empty.
2
Using the same concept present in http://demos.jquerymobile.com/1.2.0/docs/lists/lists-search.html
I wonder if it is possible to just list the items when I search them in the searchbox. I don’t want everyone to be shown on when the box is empty.
1
As follows in the jquery mobile documentation , just add data-filter-reveal="true"
, thus:
<ul data-role="listview" data-filter="true" data-filter-reveal="true" data-filter-placeholder="Search fruits..." data-inset="true">
<li><a href="#">Apple</a></li>
<li><a href="#">Banana</a></li>
<li><a href="#">Cherry</a></li>
<li><a href="#">Cranberry</a></li>
<li><a href="#">Grape</a></li>
<li><a href="#">Orange</a></li>
Functional example in Jsfiddle here
Browser other questions tagged listview jquery-mobile
You are not signed in. Login or sign up in order to post.