How to get text from span ID
<p>Under JQM, how can i get the text inside SPANs?</p>

<p>As i searched, there are hundreds of method to do that. 
But nothing available on my case.</p>

<p>I want display those SPAN value as 123 - 456 on section  "mainPage".</p>

<pre><code>&lt;script&gt;
$('a[name=submit_button]').click(function(){
 var Val1 = $('#zip1').text(text);
 var Val2 = $('#zip2').text(text);

 ...
&lt;/script&gt;

&lt;section id="mainPage" data-role="page"&gt;
 ...
&lt;/section&gt;

&lt;section id="zipSearch" data-role="dialog" data-theme="d"&gt;
 ...
 &lt;ul&gt;&lt;li&gt;&lt;a name="sumit_button href="#mainPage"&gt;&lt;span id="zip1"&gt;123&lt;/span&gt;&lt;span id="zip2"&gt;456&lt;/span&gt;&lt;/li&gt;
 &lt;/ul&gt;
 ...
 &lt;/section&gt;
</code></pre>
