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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:31:38+00:00 2026-06-03T06:31:38+00:00

I know it sounds odd, but I’d like to create an html class that

  • 0

I know it sounds odd, but I’d like to create an html class that will change the font of the last character in the tagged text.

while css lets you change the fontsize, color of the first character of some strings, there is sadly nothing to change the font of the last character.

Is it best to use the charAt(length-1) in JS or is there some way in JQuery to alter the last character of the selected class?

  • 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-03T06:31:40+00:00Added an answer on June 3, 2026 at 6:31 am

    You’ll have to fetch, change, and then reput the html content of your texts.

    I made a fiddle to illustrate it :

    http://jsfiddle.net/dystroy/3maG5/

    Be aware that there are risks : without greater analysis you may have problems if your paragraphs (or other texts) end with an element.

    EDIT : I just see that eyurdakul made a few seconds before me a very similar answer. I think he’s correct too. I let this answer as a complementary one to give a testable example. Of course, if one answer should be accepted, it’s probably eyurdakul’s one, he was faster 🙂

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

Sidebar

Related Questions

I know that question sounds a little odd but i will try to explain
I know this sounds like something I can google, but the truth is that
I know this sounds like a simple question, but I just wasted the last
I know this sounds like a subjective answer, but I will try to make
I know this sounds like an odd question, but I need to keep a
I know this sounds like a homework assignment, but it isn't. Lately I've been
I know this sounds like a dumb question but I need to ask this.
I know it probably sounds like very trivial question but I couldn't find any
I know it sounds a bit odd but I have a string: <img src=image1.gif
I know this sounds like an easy question but for some reason I just

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.