Search Bar for separate UL

Search Bar for separate UL

Hello,
So let me explain the setup i'm shooting for, that way you understand the method to my madness.
I have a page that allows the user to select different list items (options for Recent stores, Local stores, and All stores). When the user clicks on one of those list items, the page dynamically adds content to a different ul that is revealed on the page. And in that dynamically added ul, via the data-filter="true" the user can search that particular ul (whatever the user clicked, either recent, local, or all). That all works fine.
Now my goal is to have a search bar that will search all the stores from the original page (the one that shows recent, local, and all stores). Trouble is that the data-filter="true" addition just filters what's inside that particular ul. I want a search bar that will search the separate ul.
The reason I have my ul's separate is because I have a header and a footer that don't transfer nice (as in they don't come over at all) with how JQuery handles transitions down to lower list items. So each of my three original ul's point to a different part of the page (multipage document) that contains an area for loading the dynamic data.
That's kind of a long winded explanation, hopefully it made sense. Here is my code:
  1. <body>

  2. <!-- Start of first page (Shows Store Options) -->
  3. <div data-role="page" id="storeHome">

  4.       <div data-role="header" data-theme="b" id="storeHeader" >
  5.           <a href="Home.html" class="ui-btn-left" rel="external" data-icon="back"  data-add-back-btn="true" >Back</a>
  6.           <h1>Choose Store</h1>
  7.       </div>
  8.  
  9.    
  10.       <input type="text" id="searchStoreBar" placeholder="Search Stores">
  11.    
  12.    
  13.       <ul data-role="listview" data-autodividers="false"  id="storeList">
  14.           
  15.           <li class="opt" id="recentStores"><a href="#storesPage" data-transition="slide">Recent Stores</a></li>
  16.           
  17.           <li class="opt" id="localStores"><a href="#storesPage" data-transition="slide" >Local Stores</a></li>
  18.           
  19.           <li class="opt" id="allStores"><a href="#storesPage" data-transition="slide">All Stores</a></li>
  20.       </ul>
  21.   
  22.   
  23.       
  24.       <div data-role="footer" data-theme="c" class="ui-bar" data-position="fixed" style="padding:0;">
  25.           <a href="Home.html" class="ui-btn-left" data-icon="ROER-burrisLogo" data-iconpos="notext"></a>
  26.           <h4>Prototype</h4>
  27.           <p class="ui-btn-right"><img data-inline="true" src="img/ROERLogo-03.png" width="40" height="34"></p>      
  28.       </div>
  29.     

  30. </div>
  31.     
  32.     <div data-role="page" id="storesPage">
  33.     
  34.       <div data-role="header" data-theme="b" id="storeHeader" >
  35.           <a href="#" class="ui-btn-left back" data-rel="back" data-icon="back" id="backBtn" data-add-back-btn="true" >Back</a>
  36.           <h1>Choose Store</h1>
  37.       </div>
  38.       
  39.       <!--<input type="search" id="subSearchStoreBar" placeholder="Search Stores">-->
  40.       <ul data-role="listview" id="storesUL" data-autodividers="true" data-divider-theme="d"  data-filter="true">
  41.       <!--########### Begin Generated Code for STORES ###############-->
  42.       
  43.         
  44.       
  45.       <!--########### End Generated Code for Stores ###############-->
  46.       </ul>
  47.       <div data-role="footer" data-theme="c" class="ui-bar" data-position="fixed" style="padding:0;">
  48.           <a href="Home.html" class="ui-btn-left" data-icon="ROER-burrisLogo" data-iconpos="notext"></a>
  49.           <h4>Prototype</h4>
  50.           <p class="ui-btn-right"><img data-inline="true" src="img/ROERLogo-03.png" width="40" height="34"></p>      
  51.       </div>
  52.             
  53. </div>

  54. </body>


And here is the javascript/jquery code:

  1. $(document).ready(function() {
  2. User.loadSession(function(){

  3. $("#backBtn").click(function() {
  4. $("#storesUL").empty();
  5. //TODO Empty other store UL's
  6. });
  7. $("#recentStores").click(function() {
  8. Customer.getRecentStores(function(stores){
  9. for(var i = 0; i < stores.length; i++){
  10. $("#storesUL").append('<li class="store" id="' + stores[i].id + '"><a data-transition="slide" data-filter="false">' + stores[i].fullname + '</a></li>');
  11. }
  12. $("#storesUL").listview("refresh");
  13. });
  14. });
  15. $("#localStores").click(function() {
  16. Customer.getLocalStores(13, 12, function(stores){
  17. for(var i = 0; i < stores.length; i++){
  18. $("#storesUL").append('<li class="store" id="' + stores[i].id + '"><a data-transition="slide">' + stores[i].fullname + '</a></li>');
  19. }
  20. $("#storesUL").listview("refresh");
  21. });
  22. });
  23. $("#allStores").click(function() {
  24. Customer.getAllStores(function(stores){
  25. for(var i = 0; i < stores.length; i++){
  26. $("#storesUL").append('<li class="store" id="' + stores[i].id + '"><a data-transition="slide" data-filter="false">' + stores[i].fullname + '</a></li>');
  27. }
  28. $("#storesUL").listview("refresh");
  29. });
  30. });
  31. $("#searchStoreBar").keyup(function(){
  32. //TODO: Search all stores
  33. //alert("pressed key");
  34. /*Customer.getAllStores(function(stores){
  35. window.location="#storesPage";
  36. for(var i = 0; i < stores.length; i++){
  37. $("#storesUL").append('<li class="store" id="' + stores[i].id + '"><a data-transition="slide" >' + stores[i].fullname + '</a></li>');
  38. }
  39. $("#storesUL").listview("refresh");
  40. });*/
  41. });
  42. $("#localStoresUL").on("click", ".store" ,function() {
  43. //alert("store clicked");
  44. var storeId = this.id;

  45. new Order(storeId, function(){
  46. window.location = "Orders/NewOrder.html";
  47. });
  48. });
  49. $("#recentStoresUL").on("click", ".store" ,function() {
  50. //alert("store clicked");
  51. var storeId = this.id;

  52. Order = new Order(storeId, function() {
  53. window.location = "Orders/NewOrder.html";
  54. });
  55. });
  56. $("#allStoresUL").on("click", ".store" ,function() {
  57. //alert("store clicked");
  58. var storeId = this.id;
  59. new Order(storeId, function(){
  60. window.location = "Orders/NewOrder.html";
  61. });
  62. });
  63. });
  64. });
And a good screen is always nice to see to try and get a visual.

Thanks for any help y'all can give!