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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:17:03+00:00 2026-05-28T08:17:03+00:00

I have some link elements which are dynamically added and hidden from the page.

  • 0

I have some link elements which are dynamically added and hidden from the page.

They are generated by a third party telerik control.

I want to change the name of the text, and unfortunately the only way is to use jquery.

I have generated the rule (selector) that catches the Edit links when they are shown. But on initial page load no edit links will be visible. After the user clicks something, these links will be created. After the user clicks something else, these will hide, some other links will show. These are the links I need to change the text on.

How can I write jquery code so that whenever an element matching that selector is added to the page, the button text is updated ?

Thank you!

Edit0

I have no control over how they are generated.

There are two grids, parent at top, child at bottom. Initially child is hidden. A row is selected in the top grid, the bottom grid shows items for that selection. This is the point at which these links are added to the page (asynchronously via AJAX), so they are not in the DOM (edit links for each child item in the child grid).

Hope that makes more sense.

Edit1

//catches the links
$("#CustomClass .t-button.t-grid-edit").text("Awesome text instead of Edit");
  • 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-28T08:17:04+00:00Added an answer on May 28, 2026 at 8:17 am

    If you’re using jQuery 1.7+, you need to use on to assign event handlers to current and future DOM elements that meet your selector criteria.

    If you’re using earlier versions of jQuery, you should use delegate.

    You state that you don’t have control over how they are generated, but do you have control over adding the content to the page? If so, you could use custom events (perhaps) and the use of on/delegate to handle the new items being added to your grid.

    Here’s a fiddle demonstrating this — http://jsfiddle.net/dhoerster/xLvYE/

    Again, not sure if this helps. I’ll delete if I’m not understanding this correctly. Hopefully 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 script which collects an image, link and some text content from
I have some elements like <a class='link'>click</a> which are created after clicking on another
I have some textboxes on a page and I want to click a link
I have a link to some style sheet from the Yahoo Developer Network, this
I have a link which animates some div 's height when its hovered, but
I have this table, from which i'd like to select all the td elements
Some elements in my page are rendered through php code. Sometimes, on link clicks
In my application I have some link buttons there but when I right click
I have some data of the form Key ID Link 1 MASTER 123 2
I have some jQuery code that highlights a link when clicked, and changes the

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.