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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:00:27+00:00 2026-05-16T18:00:27+00:00

I have table which contains the rows that are dynamic from server side scripting(PHP)

  • 0

I have table which contains the rows that are dynamic from server side scripting(PHP)
and also using Zend Framework .
So each row will have hyperlink with id
SOmevalue(Dynamic)
now each row will have contextmenu (Jquery Plugin ) appended to each row by the below code.

    $("#myTable td:first-child").contextMenu("myMenu1",{
      bindings: {
            'hdr': function(t) {
                alert($("#Test0").attr("data-value1"));
                alert($("#Test0").attr("data-value2"));

             }
      },
      menuStyle: {
            border: '1px solid #000'
       }
      });

So My Problem is how do i know on which row was context menu clicked and
suppose if i click on second row i want to get the value of that < a href>
value of that “test1” or “test2” or “test3” or “test4”
dynamically . i should not able to write “test1″or test2 son on

  • 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-16T18:00:28+00:00Added an answer on May 16, 2026 at 6:00 pm

    Please provide the html markup that gets generated.
    Something along these lines should work:

    $("#myTable td:first-child").contextMenu("myMenu1", {
        bindings: {
            'hdr': function(t) {
                alert($("this").closest("tr").find("a").attr("href"));
            }
        },
        menuStyle: {
            border: '1px solid #000'
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table which contains my ads that can be searched in sql-server-2008.
We are using mysql. We have a huge table which contains 1 billion rows.
Ok, I have a table which contains multiple rows. Each row contains some data
I am working Stripes framework. I have a table which contains 100's of rows
I have a table which already contains some rows and does not have a
I have one user table. and second language table which contains language that user
We have a (currently InnoDB) table which contains roughly 500,000 rows. This represents a
i have a php code which selects and shows data from my 'elections' table.
I have a table in SQL Server 2005 which contains some changelog data for
I've got a table which is partially made up of dynamic rows (comes from

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.