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

  • Home
  • SEARCH
  • 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 8625457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:47:27+00:00 2026-06-12T07:47:27+00:00

I want to get span value my code is below. All i want is

  • 0

I want to get span value my code is below. All i want is get span value with class=”hideme” when i click any of image. Im using html5 jquerymobile phonegap_v2.0 framework Xcode_v4.3

css code:

.hideme{
diplay:none;
}

html code:

  <ol id='ulist' data-role='listview' data-filter='true'>
         <li>

         <a href='#' rel="external" data-mini="true">John<span id='id1'  class="hideme" >1</span></a>
             <div data-role="field" style="float: right;margin-top: -30px;padding-right: 4%;">
             <img data-mini="true" src="icons/ios/info.png" alt="info"/>
              <img data-mini="true" src="icons/ios/session.png" alt="session"/>
              <img data-mini="true" src="icons/ios/prospclient.png" alt="Prospect Client"/>
             <img data-mini="true" src="icons/ios/delete.png" alt="delete"/>
             </div>
         </li>
         <li>
          <a href='#' rel="external" data-mini="true">Carmen<span id='id2' class="hideme" >2</span></a>
             <div data-role="field" style="float: right;margin-top: -30px;padding-right: 4%;">
                 <img data-mini="true" src="icons/ios/info.png" alt="info"/>
                 <img data-mini="true" src="icons/ios/session.png" alt="session"/>
                 <img data-mini="true" src="icons/ios/prospclient.png" alt="Prospect Client"/>
                 <img data-mini="true" src="icons/ios/delete.png" alt="delete"/>
             </div>
         </li>
         <li>
          <a href='#' rel="external" data-mini="true">Julia<span id='id3' class="hideme" >3</span></a>
             <div data-role="field" style="float: right;margin-top: -30px;padding-right: 4%;">
                 <img data-mini="true" src="icons/ios/info.png" alt="info"/>
                 <img data-mini="true" src="icons/ios/session.png" alt="session"/>
                 <img data-mini="true" src="icons/ios/prospclient.png" alt="Prospect Client"/>
                 <img data-mini="true" src="icons/ios/delete.png" alt="delete"/>
             </div>
         </li>
    </ol>

how to do in javascript or jquery

  • 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-12T07:47:28+00:00Added an answer on June 12, 2026 at 7:47 am

    Span elements don’t have a “value”. If you’re asking how to get the text content of the span contained within the same <li> element as a clicked <img> element then you can do this with jQuery:

    $("#ulist img").click(function() {
        var spanContent = $(this).closest("li").find("span.hideme").text();
    });
    

    If you’re asking how to get the id attribute, use .attr("id") instead of .text().

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

Sidebar

Related Questions

I want to get all values of 'id' attribute of 'span' tag with html
The following Javascript code: o_value.html(); give me <span id=legaloffice_city_value>some text</span> All that I want
Given a table row, I want to get the HTML out of the span
I want get all of the Geom objects that are related to a certain
What I want: get a xml from the AppData to use What I code
i want query a file xml with linq, i want get all descendat of
I'm attempting to find a value X, which matches the pattern: <span class=line-item-quantity-raw>X</span> Once
i have a select tag , when its value changes i want to get
This code: $el.parent().html() Writes out as: <input type=checkbox> <span>Finish This</span> If I want to
I am using Uniform JS plugin for the form inputs. in the below code,

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.