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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:03:14+00:00 2026-05-29T06:03:14+00:00

I have the following HTML: <tr> <td class=ui-widget-content> <a title=Edit href=/Administration/Menus/Edit/001W class=editLink ui-button ui-widget

  • 0

I have the following HTML:

<tr>
    <td class="ui-widget-content">
        <a title="Edit" href="/Administration/Menus/Edit/001W"
           class="editLink ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only"
            role="button">
            <span class="ui-button-text">Edit</span>
        </a>
    </td>
    <td class="ui-widget-content">001W</td>
</tr>

To the editLink class I apply the following:

$('.editLink')
              .button({ icons: { primary: "ui-icon-clipboard"} })
              .removeClass('ui-button-text-icon-primary')
              .addClass('ui-button-icon-only')
              .click(function () {
                  editClick(this);
                  return false;
               });

Is there a way that I can make it so I call the editClick function with the value of the following <td> as a second argument?

So for example in this case it would be the same as calling editClick(this,”001W”)

  • 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-29T06:03:15+00:00Added an answer on May 29, 2026 at 6:03 am

    Yep.

    You can use $(this).closest('td').next().text() to do that.

    See closest(), next() and text() in the jQuery documentation.

    You could also use $(this).parent().next().text() if you can guarantee the DOM structure of the td‘s, but I’d prefer the use of closest() to make it more versatile.

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

Sidebar

Related Questions

I have the following html <div id=menu> <ul class=horizMenu> <li id=active><a href=# id=current>About</a></li> <li><a
I have following html snippet: <div class=rsw-pp rsw-pp-widget> <div g:type=AverageStarRating g:secondaryurls=http://maps.google.com/?cid=12948004443906002997 g:decorateusingsecondary=http://maps.google.com/?cid=12948004443906002997 g:groups=maps g:rating_override=2.998000
so i have the two following iframe codes: <iframe title=YouTube video player class=youtube-player type=text/html
I have the following: <td class=ui-widget-content style=width: 244px;> <span id=refLink_9 class=refLink> <input type=text value=/C02E/Java-Notes-Classes1
I have the following form <form id=myform method=post action=#> <div class=fields> <fieldset class=ui-widget ui-widget-content
I have the following html code: <h3 id=headerid><span onclick=expandCollapse('headerid')>&uArr;</span>Header title</h3> I would like to
I have the following HTML to center images and links within a layer: edit:
I have the following HTML <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server> <title></title> <style> .box {
I have the following html: <h3 class=accordion>My Accordion</h3> <ul class=accordion> <li>a</li> <li>b</li> <li>c</li> </ul>
I have an HTML form: <div id=dialog class=event-dialog title=Create Event> <div id=dialog-inner> <table> <tr><td

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.