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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:59:51+00:00 2026-05-27T05:59:51+00:00

I am using jQgrid for doing a table and I want to add an

  • 0

I am using jQgrid for doing a table and I want to add an event to a concrete column and I don’t want to pass html with PHP so I want to attach an event and do some work. The problem is that there is no class and no id, I just have this:

<td aria-describedby="list_description" title="lorem ipsum" style="" role="gridcell">lorem ipsum</td>

All the <td />‘s have a aria-describedby, in this case the list_description is where I want to attach an event. In a class way, I’ll do something like $(".list_description").live("click",function(){}); (because is loaded via AJAX) but how I can do it with that custom attribute?

And then, when I click to an area-describedby="list_description" I need to get the value of area-describedby="list_id" that is in the same `.

An example code:

<tr>
    <td aria-describedby="list_id" title="1" style="" role="gridcell">1</td>
    <td aria-describedby="list_description" title="lorem ipsum" style="" role="gridcell">lorem ipsum</td>
</tr>
<tr>
    <td aria-describedby="list_id" title="2" style="" role="gridcell">2</td>
    <td aria-describedby="list_description" title="lorem ipsum" style="" role="gridcell">lorem ipsum</td>
</tr>

How I can do it?

  • 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-27T05:59:52+00:00Added an answer on May 27, 2026 at 5:59 am
    $("td[aria-describedby='list_description']").click(function(){
        var prev = $(this).prev().html();
        alert(prev);
    });
    

    Example.

    jQuery allows you to search for elements with a given attribute. ([aria-describedby='list_description']). More about that selector here.

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

Sidebar

Related Questions

I am using jqGrid to render some data. Now I want the ability to
I am using jqGrid and I don't want the grid to autoload. I only
i m using jqgrid with mvc 3, I want to add Edit and Delete
I am using jqGrid ( http://www.trirand.com/blog/ ) to display some read-only data. The resizeable
I'm using jqGrid for a table input and setting up the url as a
I am using jqgrid 3.8. I have a grid which is having some editable
I'm using jqGrid and adding my own onclick event to each cell of data
I'm using the built in search functionality with jqGrid and started to get some
I need to set some event handlers for jqGrid's edit events after the grid
Its like I have multiselect option in Jqgrid in which i want to pass

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.