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 8728157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:34:05+00:00 2026-06-13T08:34:05+00:00

I am trying to pass unique passnum value to different zone information using jquery,

  • 0

I am trying to pass unique passnum value to different zone information using jquery, so that the passnum information is specific to a specific zone.
for example zone1 may passnum = 100 and zone2 may have 50

Is it possible to pass the unique passnum value to each of the zones<h5> </h5>based on the zone using jquery? since there could be hundreds of zone blocks dynamically created.

<div class="wrapper" class="zone1">

other divs here (could have unknown amount of div block or tages here


<div ><span class="pass-num"><h5>some num  </h5></span> </div>

</div>



<div class="wrapper" class="zone2">

other divs here (could have unknown amount of div block or tages here


<div><span class="pass-num"><h5>some num(pass val here)  </h5></span> </div>

</div>

I have cthe ode below which works when u know the zone and structure

$(document).ready(function() {

            var passnum ="110";
            var passtext="All";


            $('div.pass-text>h4').text(passtext);
            $('div.pass-num>h4').text(passnum);





    });
    </script>
  • 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-13T08:34:06+00:00Added an answer on June 13, 2026 at 8:34 am

    Given your html, this function should do it:

    function get_passnum(zone) {
       return $('.zone'+zone+' .pass-num').text();
    }
    

    Use it like:

    passnum = get_passnum(2);
    

    See working demo

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

Sidebar

Related Questions

i'm relatively new to jquery and javascript and am trying to pass a unique
I am trying pass class as value in hashmap. I need to get the
im trying to pass two parameters to a function, i being an int value
I am trying to pass a simple JSON object to a controller using MVC3
Im trying to pass a value bounded with a button in form1.aspx to form2.aspx
I'm trying to create an event handler (jQuery) that will pick all elements of
I am trying to validate that a username is unique on a registration form
I'm trying to make a mobile application using jQuery Mobile and Phonegap. But first
I am trying to create a unique slug in Django so that I can
I'm trying to update a row in MongoDB using mongoose I pass account number

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.