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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:10:19+00:00 2026-06-10T06:10:19+00:00

Possible Duplicate: get jquery to return font-size in points Using jQuery, I’m setting something

  • 0

Possible Duplicate:
get jquery to return font-size in points

Using jQuery, I’m setting something to 16pt as that is what my previous versions of my web application did. The issue is that some point after I set my code as follows:

$(SELECTED).css("font-size","16pt");

I would need to fetch it. When I fetch it, it doesn’t return 16pt, but instead 21px. Is there either a conversion ratio I can use, or a way to fetch 16pt?

var fetched_size = $(SELECTED).css("font-size");

Is there an option you need to pass in, or a different way of handling it?

As a follow up to this question, i had noticed that things are not looking they way they should on what i am building. The textbox holding my data seems to be holding certain information. Do you know why the following would not work?

var x = "32";
$("#fontsize").val(decodeURIComponent(x));  //this points to a input:text
 //the above statement doesnt seem to override the current contents with the value of x.
  • 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-10T06:10:21+00:00Added an answer on June 10, 2026 at 6:10 am

    I believe css is for accessing the computed style. Just use the build-in style property directly:

    var fetched_size = $(SELECTED)[0].style.fontSize;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do I get the value of a textbox using jQuery? on
Possible Duplicate: How to get all options of a select using Jquery? I have
Possible Duplicate: Get jQuery version from inspecting the jQuery object Pretty much that.. I
Possible Duplicate: Array unique values Get unique results from JSON array using jQuery Im
Possible Duplicate: Get Class List for Element with jQuery If I have something like
Possible Duplicate: how to get GET and POST variables with JQuery? I have the
Possible Duplicate: How to get all of the IDs with jQuery? How can i
Possible Duplicate: Get the resolution of a jpeg image using C# and the .NET
Possible Duplicate: Get the IP Address of local computer Obtaining local IP address using
Possible Duplicate: jQuery get input value after keypress I'm trying to get an input

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.