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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:07:42+00:00 2026-06-18T22:07:42+00:00

I have to use a proprietary cms blog that renders it’s summary marker that

  • 0

I have to use a proprietary cms blog that renders it’s “summary marker” that contains

  1. an elipsis
  2. a dynamic changing link (so the link is always different)
  3. static text that says: Click here to read more.

This is how the summary marker currently renders on a page:

<p>Content goes here....<a href="example.htm">Click here to read more.</a></p>
<p>More content goes here....<a href="anothertest.htm">Click here to read more.</a></p>
<p>Content goes here....<a href="helloworld.htm">Click here to read more.</a></p>

Meanwhile, I would like to control the summary marker with some jquery so I’m not restricted to its rigid display by:

  1. removing each ellipsis
  2. appending a class ONLY after the href that contained the ellipsis, so it doesn’t update other links on the page.

This would be the much desired expected result.

<p>Content goes here.<a href="example.htm" class="readmore">Click here to read more.</a></p>
<p>More content goes here.<a href="anothertest.htm" class="readmore">Click here to read more.</a>
<p>Content goes here.<a href="helloworld.htm" class="readmore">Click here to read more.</a>

Thanks so much for your help in advance!

This is what I got, which is bad I know

$("p").html("...").remove:after.attr(".readmore").attr("href"));
  • 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-18T22:07:43+00:00Added an answer on June 18, 2026 at 10:07 pm
    $('p').each(function () {
        var textNode = $(this).find('a:last-child').addClass('readmore')[0].previousSibling;
    
        textNode.textContent = textNode.textContent.replace(/\.{3}\s*$/, '');
    });
    

    Here’s the fiddle: http://jsfiddle.net/sH2eA/

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

Sidebar

Related Questions

I have a proprietary application that takes XML files and can use embedded Java
I want to use 7-Zip within my proprietary application. 7-Zip is LGPL Consider that
I use a proprietary date format that looks like this: var TheUserDate = 3.11.2012.4.3;
I'm working on a proprietary feedback application. I have a table named topics that
I have several dynamic web projects in my workspace, each contains classes and refers
Okay so i have a packed a proprietary binary format. That is basically a
We have devices that run a proprietary FTP client on them. They retrieve media
I have a very old (VC++ 5.0) proprietary DLL which I need to use
I have a proprietary command-line program that I want to call in a bash
I have to deal with a proprietary file format that's nothing more than a

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.