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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:11:45+00:00 2026-05-23T13:11:45+00:00

I have repeater and it gets a column value from modalpopup. I need to

  • 0

I have repeater and it gets a column value from modalpopup. I need to set that on 3rd from last and 2nd cell anchor tag. Below is my code snippet.
It is working on IE, but not in Firefox, Safari and Chrome.

{   
  var repeater = $("#pubRepeater");
  var numberofrows = repeater.find('tr').length;
  var lastcell = repeater.find('tr')[numberofrows - 3];
  lastcell.childNodes[1].childNodes[0].innerText = 'New Value';
}
  • 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-23T13:11:46+00:00Added an answer on May 23, 2026 at 1:11 pm

    It looks like the issue is that while you’re using jQuery, you’re not using at all the way. The .innerText property is specific to IE, so why not use the method jQuery provides?

    $('td a', lastcell).text('New Value');
    

    If the td is the last td in the row, then:

    $('td:last a', lastcell).text('New Value');
    

    If you are trying to update the actual HTML rather than the text, then use .html instead of .text

    The second arguement in the $() selector is the scope in which it should look for the elements in the first arguement. Since you’ve already found the last row, it’s far more efficient to tell jQuery to look for the ‘td:last a’ elements only in that row.

    Also, by using the ‘td:last a’ instead of childNode[0].childNode[1], you make your code much more extensible. Now, if you add more columns or additional elements to the last column, you won’t have to go and change your childNode indexes to match.

    Hope this helps!

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

Sidebar

Related Questions

I have a repeater that outputs divs like the following for every item returned
i have a repeater that will output a series of items: <asp:repeater ... runat=Server>
I have a .NET repeater control that is data-bound to a List. As part
I have an image gallery that is created using a repeater control. The repeater
I have an UpdatePanel that contains a Repeater. in the ItemTemplate of the repeater
I have a repeater which binds a set of data. Within this repeater is
I have two Repeater Control var list = from i in DA.obm_view_studentLists where i.FranchiseID
I have an ASP.Net Repeater I want to use to show From and Text
I have a repeater control where in the footer I have a DropDownList. In
I have a repeater control on an ASP.NET 2.0 web form. As I understanding

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.