This is about the craziest way to do it. As my grandfather would have
said, it's "bass ackwards". An HTML DOM is about the very
worst, least efficient place to search for things!
I'm assuming you have some kind of database on the server.
It would be best to let the database do it's job! Send the
search terms to the server, and let the server search the database.
Imagine if you had to download the Amazon catalog to your
browser to search for products! But, hey presto! you can search
millions of products in an instant, because a powerful server does
the job with the right tools.
Absent that, it would be better to download data than pages.
Get the data as JSON. You can store it in an object, if it is not
too big, or put it in a local database if it is large. You can
create simple key-value stores of modest size directly in the
browser. But better yet, all of the hybrid platforms (e.g. PhoneGap,
etc.) provide a real SQL database locally. (Usually based on SQLite)
that can be efficiently searched. You then also have the opportunity
to keep the database stored locally, instead of having to download
it every time.
This really is not a job for jQuery. And certainly not for
jQuery Mobile, which - though you might use it for presentation, has
nothing to do with this search.
If you can't have the server search, and you HAVE to scrape
your content from your site's HTML pages, you can use a loop with
jQuery .ajax(),
(instead of loading jQuery Mobiles pages...) parse the content,
and then stuff it into a proper local database where it can be
searched efficiently.
But better to either have the server do the search, or at least
have it format the data into JSON which will make it easy to load into
a local database without any scraping nonsense.