Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8075149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:53:45+00:00 2026-06-05T14:53:45+00:00

Under JQM, how can i get the text inside SPANs? As i searched, there

  • 0

Under JQM, how can i get the text inside SPANs?

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

I want display those SPAN value as 123 – 456 on section “mainPage”.

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

 ...
</script>

<section id="mainPage" data-role="page">
 ...
</section>

<section id="zipSearch" data-role="dialog" data-theme="d">
 ...
 <ul><li><a name="sumit_button href="#mainPage"><span id="zip1">123</span><span id="zip2">456</span></li>
 </ul>
 ...
 </section>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:53:47+00:00Added an answer on June 5, 2026 at 2:53 pm

    Simply use

    var Val1 = $("#zip1").text();
    var Val2 = $("#zip2").text();
    

    It probably doesn’t work for you because you have syntax error in your a tag (forgot one of “). Change it to:

    <a name="sumit_button" href="#mainPage">
    

    EDIT: I have also just noticed you haven’t closed your a tag either. Clear up your HTML tags, spooky things happen when you your strings or tags aren’t terminated in the right place 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Under Solution->Properties, I can set multiple start-up projects: I know that I can get
Under the .NET Compact Framework, there is no FormWindowState.Minimize value. How can I minimize
Under what circumstances would java.util.zip.ZipFile.close() throw an IOException? Its method signature indicates that it
Under Linux, C++, and GCC, can I get a physical address for a given
Under VS's external tools settings there is a Use Output Window check box that
Under AppVerifier, one of our apps blows up. I get a DMP file, but
Under MacOSX, I can create a file under root (/) without having admin rights.
Under what exact circumstances do @SessionAttributes get cleared? I've discovered some confusing behaviour when
Under JBoss 4.0.1SP1, I have a servlet that makes multiple, concurrent calls to web
Under windows , we frequently use event to synchronize threads. Under java, is there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.