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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:38:02+00:00 2026-05-18T08:38:02+00:00

The code below shows a rendered HTML (from Compiled ASP .Net code). I would

  • 0

The code below shows a rendered HTML (from Compiled ASP .Net code). I would not be able to make any changes to it including adding new attributes like ID.

I could still do something with Javascript but because there is no unique ID for the column, I could not replace the underscore text “____________” with some other text.

The plan is to replace the underscore in column 3 for each row with some other text. Is there a way to identify Column 3 with Javascript?

Thank you.

    <table width='100%'>
        <tr>
            <td align="left" valign="top" class='clsReadOnly'>Row 1
            </td>
            <td align="left" valign="top" class='clsReadOnly'>
                abc
            </td>
            <td align="left" valign="top" class='clsReadOnly'>
                __________________________
            </td>
        </tr>
        <tr>
            <td align="left" valign="top" class='clsReadOnly'>Row 2
            </td>
            <td align="left" valign="top" class='clsReadOnly'>
                def
            </td>
            <td align="left" valign="top" class='clsReadOnly'>
                __________________________
            </td>
        </tr>
        <tr>
            <td align="left" valign="top" class='clsReadOnly'>Row 3
            </td>
            <td align="left" valign="top" class='clsReadOnly'>
                ghi
            </td>
            <td align="left" valign="top" class='clsReadOnly'>
                __________________________
            </td>
        </tr>
    </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-18T08:38:02+00:00Added an answer on May 18, 2026 at 8:38 am

    It depends on what you are trying to accomplish. If this is how your table will always look, you could do the following:

    var cells = document.getElementsByClassName('clsReadOnly');
    
    cells[2].innerHTML = "Row1 Column3";
    cells[5].innerHTML = "Row2 Column3";
    cells[8].innerHTML = "Row3 Column3";
    

    If you don’t know how many columns you will start with, you would have to do this:

    var rows = document.getElementsByTagName('tr');
    
    for (var i=0; i<rows.length; i++) {
        var cells = rows[i].getElementsByTagName('td');
    
        cells[2].innerHTML = 'Row'+(i+1)+' Column3';
    }
    

    jQuery would make this much easier, as you can select by tag, by parent, etc. Of course, you can do all of this in plain JavaScript, but it takes a lot more work.

    http://jsfiddle.net/bShZa/

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

Sidebar

Related Questions

The code below compiled in Debug configuration in VS2005 SP1 shows two messages with
The code below shows a sample that I've used recently to explain the different
The code below shows me (I think) that the for each loop is about
My PHP code below shows an image on browser as its original size 300x300.
I have the code below that hides and shows the navigational bar. It is
The code below shows the result (compiler: VS 2008) Connected to ROOT\CIMV2 WMI namespace
I have a loading image that works using the code below. It shows the
In the code shown below, I need to manipulate the time var in python
In the code shown below, how to get the values of multiselect box in
I have noticed that my geocoder is inconsistent in the code shown below because

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.