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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:45:14+00:00 2026-05-23T19:45:14+00:00

Goal: Retrieve data aaa from the first td in tr by pressing the link

  • 0

Goal:
Retrieve data “aaa” from the first “td” in “tr” by pressing the link “info”. For instance, if pressing the link “info” from the first “tr” I should retrieve the data “aaa” from the first “tr”.

Problem:

Having problem to find a solution to retrieve data “aaa” by pressing
the link “info” by using javascript AND jquery. In other word, how to
retrieve data by jquery and javascript

Please rememeber that I also need to transer the value aaa for other method in relation to business logic.

Another thing, The quantity of rows in the list can be changed everyday.


   <table border="1" SUMMARY="aaa" id="tblProjekt">
    <thead>
        <tr>
            <th>Projekt name</th>
            <th>Total time</th>
            <th>Task</th>
            <th>comments</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>aaa</td>
            <td>aaa</td>
            <td>aaa</td>
            <td><a href='#' onclick='startPoint(); return false;'>info</a></td>
        </tr>
        <tr>
            <td>bbb</td>
            <td>bbb</td>
            <td>bbb</td>
            <td><a href='#' onclick='startPoint(); return false;'>info</a></td>
        </tr>
        <tr>
            <td>bbb</td>
            <td>bbb</td>
            <td>bbb</td>
            <td><a href='#' onclick='startPoint(); return false;'>info</a></td>
        </tr>      
    </tbody>

</table>
  • 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-05-23T19:45:15+00:00Added an answer on May 23, 2026 at 7:45 pm

    I agree to 3nigma that the question is not clear. In case you wanted the link to appear in each row and display first cell’s content after clicking it, here is the solution (see jsfiddle):

    jQuery('#tblProjekt').delegate('a.startPoint', 'click', function(event){
        event.preventDefault();
        var info = jQuery(this).parents('tr').find('td:first-child').html();
        alert(info);
    });
    

    This will display alert popup with what I have just described. It assumes your HTML should look like this:

    <table border="1" SUMMARY="aaa" id="tblProjekt">
        <thead>
            <tr>
                <th>Projekt name</th>
                <th>Total time</th>
                <th>Task</th>
                <th>comments</th>
                <th>(link for more info)</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>aaa1</td>
                <td>aaa2</td>
                <td>aaa3</td>
                <td>aaa4</td>
                <td><a href="#" class="startPoint">info</a></td>
            </tr>
            <tr>
                <td>bbb1</td>
                <td>bbb2</td>
                <td>bbb3</td>
                <td>bbb4</td>
                <td><a href="#" class="startPoint">info</a></td>
            </tr>  
        </tbody>
    </table>
    

    Did it help? Is it what you needed?

    Ps. I removed inline JavaScript from your code. Try to avoid this if possible.

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

Sidebar

Related Questions

Goal: retrieve an element of data from within a PHP object by number. This
goal: I have the string 1234432144 I want to only replace the first 2
My goal is to maintain a web file server separately from my main ASP.NET
The goal: To create a .NET dll i can reference from inside SQL Server
I am trying to retrieve the XML data for Google Calendar. Authentication and retrieval
My goal is to retrieve the X,Y coords of a table. I have looked
I need to retrieve the number of hours past midnight from a UIDatePicker control
Goal: I dont wanna retrieving any data if the input data contain any alphabet.
I am trying to retrieve data in a JSON object (which I have validated
Goal: To use entity framework with N-tier in my WPF application. Problem: I can't

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.