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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:04:10+00:00 2026-06-06T16:04:10+00:00

The current jQuery documentation makes no mention of .outerWidth() behaving as a setter. While

  • 0

The current jQuery documentation makes no mention of .outerWidth() behaving as a setter. While I am sure I could work it out, setting the width of an element in a line based on the calculated widths of other elements in the line is cumbersome and doesn’t work equally in IE9 when compared to the other major browsers. On a hunch, I tried using .outerWidth() as a setter. It works beautifully and equally in all browsers.

Here is the line of code (with the “value” set using a JavaScript variable, whose value is confirmed by an alert):

$("#WelcomeMessage").outerWidth(WidthAvailableForWelcomeMessage);

And here are the jQuery references in my site:

<script src="jquery-1.7.2.js" type="text/javascript"></script>
<script src="jquery-ui.js" type="text/javascript"></script>
<link href="jquery-ui.css" rel="stylesheet" type="text/css" />

One comment in the documentation of .outWidth(), at the end of the comments section, says that this feature is in the jQuery ui. Commenting out the ref to the ui makes it not work. But I can’t find explicit documentation concerning this feature anywhere.

Is this behavior reliable?

  • 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-06T16:04:11+00:00Added an answer on June 6, 2026 at 4:04 pm

    The documentation for jQuery ui has always been spotty at best, and I too can’t find any documentation on it. I would suggest not using outerWidth as a setter and finding an alternative.

    outerWidth is going to be a setter and a getter in jquery 1.8, it is safe to use it as long as you continue to include jQuery ui in your code until you upgrade to jquery 1.8

    http://blog.jquery.com/2012/06/22/jquery-1-8-beta-1-see-whats-coming-and-going/

    at least, it is currently planned to be in 1.8. Since it is still beta, that could of course change.

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

Sidebar

Related Questions

A current jQuery project of mine requires browser resize (width AND height) functionality, some
I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've
how can i select the current link via jquery if I have a div
current code I've built function to do something over collection of jQuery elements: var
Here is my current position with a Jquery Banner - http://jsfiddle.net/WcXBs/2/ Apologies for the
Successfully used jquery-infinite-carousel in the past but for my current project I need it
I have a jquery datepicker which is renders the current date by default as
I Want to start a jQuery function when the current Height of the Page
How can I find the current page number in jqGrid (using jQuery of course).
I have the following JQuery statement and it is adding the class 'current' but

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.