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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:51:20+00:00 2026-06-16T08:51:20+00:00

I got index of a row. Column count is static so I know in

  • 0

I got index of a row. Column count is static so I know in which column to put what, but what I want is to be able using onclick event handler to change content in the specific cell. the element which has this onclick event applied is outside the table with all the text inputs that I want to copy contents from. a brief example

<table id="table1">
<tr>
<td>SomeText</td>
<td>SomeOtherText</td>
</tr>
<tr>
<td>SomeText2</td>
<td>SomeOtherText2</td>
</tr>
</table>

<div id="box1">
<form>
<input type="text" name="newText"/>
<input type="button" onclick="?" />       
</form>
</div>
  • 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-16T08:51:21+00:00Added an answer on June 16, 2026 at 8:51 am

    You can get to this specific cell using something like:

    $('#table1 tr:eq(1) td:eq(1)')
    

    Here it will select second row’s second column (it’s 0 based counting).

    And then you can use jQuery.text() or jQuery.html().

    You may do something like the following:

    <table id="table1">
    <tr>
    <td>SomeText</td>
    <td>SomeOtherText</td>
    </tr>
    <tr>
    <td>SomeText2</td>
    <td>SomeOtherText2</td>
    </tr>
    </table>
    

    Then in you onclick method you can do something like following:

    $('#table1 tr:eq(1) td:eq(1)').text("Whatever text you want");
    

    OR

    $('#table1 tr:eq(1) td:eq(1)').html("Whatever text you want");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've battled with a two column layout for a WP index and got it
I want to know how I should index / access some data programmatically in
can anybody help me solve this : i got $filename= index 198.php; i use
Got a requirement to rebuild mssql full-text index. Problem is - I need to
I got this jQuery pre-loading script running on a index.html page loading about 10Mb
I have got a simple MySQL table and primary index (id) is not numbered
i just got an account at: http://www.whoisxmlapi.com/index.php#/whois-api-doc.php?rid=1 ive never parsed XML with c#, how
I've got a datababound TabControl and would like to bind the index of each
I got the following time series of residuals from another regression. One index is
I've got an array of strings that looks like this: [noindex,nofollow] or [index, follow,

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.