Modify ↓
Ticket #12147 (closed bug: invalid)
Reword documentation for .width() method
| Reported by: | mail@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The wording on the page http://api.jquery.com/width/ is confusing.
This text:
The difference between .css(width) and .width() is that the latter returns a unit-less pixel value (for example, 400) while the former returns a value with units intact (for example, 400px).
could be beter written as:
The difference between .width() and .css(width) is that the former returns a unit-less pixel value (for example, 400) while the latter returns a value with units intact (for example, 400px).
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Please file api doc related bugs here: https://github.com/jquery/api.jquery.com