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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:22:07+00:00 2026-06-07T12:22:07+00:00

Im generating a dynamic list in jqueury, and when clicked i need to get

  • 0

Im generating a dynamic list in jqueury, and when clicked i need to get the specific value of the hidden fields in THAT list element, but i am struggling.

<li class="trigger">
    <a class="" href="#">Aktiv</a>
    <input name="hrDesc"   value='Value 1'>
    <input name="hrCount" value="Value 2">
</li>

<li class="trigger`">
     <a class="" href="#">Uaktiv</a>
     <input name="hrDesc"  value="Value 3">
     <input name="hrCount" value="Value 4">
</li>

Here is my jquery:

$('.trigger').live( "click", function(){  
    alert (  $("[name='hrDesc']").serialize() );
});​

The problem is that is always returns all values of “hrDesc”
Any help would be greatly appreciated.

  • 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-07T12:22:09+00:00Added an answer on June 7, 2026 at 12:22 pm
    $('.trigger').live( "click", function(){
      alert ( 
              $(this)             // point to current clicked li
                  .find("[name='hrDesc']")  // find specific input within clicked li
                  .serialize() 
            );
    });​
    

    Note

    Instead of .live() try to use .on() for delegate event handling with jQuery 1.7+

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

Sidebar

Related Questions

Am generating a hidden fields like so: @helper.input(_form(userID), '_label-> None) { (id, name, value,
I have a dynamic form that is generating a country list. My problem is
I need to serve static swf using express framework generating dynamic view similar to:
Should a highly dynamic website that is constantly generating new pages use a sitemap
I am generating a dynamic fieldset with javascript. For adding fields, I use the
I'm using TCPDF for generating dynamic PDFs. It works fine but since I move
I'm having a problem generating dynamic links to items from my code. Code that
I need to solve my problem with generating dynamic ID for some components in
When I construct a dynamic URL using NSString stringWithFormat and then use that value
I have a custom Action Helper that is working fine. It's generating a dynamic

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.