How to get width of div using jquery

Tags: javascript,jquery,html,css

Problem :

How to get width of div using jquery

$("#window").width(); is not working

 <div id="widnow"></div>


  border:solid 1px;

Solution :

It looks like you have made a simple mistake.

Try changing




From what you have displayed here, you have misspelled window.


    CSS Howto..

    How can I style external links like Wikipedia?

    How to prevent randomly positioned images from overlapping using Angular

    How to assign speed parameter to callback functions

    css - how to remove inherited style

    How to add a value in the y-axis at the bottom of a bar chart-css

    How to get background image from internal css using xpath?

    How to add multiple CSS styles to an element with .css()

    How can I avoid div from executing new line if one line is already full?

    CSS Horizontal Menu has wrong x-position, how to put directly under parent menu?

    How to add CSS to struts2 tags

    HTML/CSS | How to place different elements in a header div to different positions?

    How to use Effeckt.css?

    Achieved JS typewriter effect, can't figure out how to make it loop after last array item

    How can i perform a smooth css transition to my sticky bar?

    How to get the position of element transformed with css rotate

    How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

    How can I know if the user tampered with the CSS or JavaScript to change the appearance of my website?

    How to avoid overlapping between two divs positioning absolute inside a div positioning relative?

    How Do I Make My CSS Slider Auto Play? [closed]

    How do I make text text when you hover the mouse over it?

    How to get CSS pulsating effect to work in FireFox and Internet Explorer?

    How quora put that image on their home page? [closed]

    Three inline divs: how to make display all three inline OR three block (NOT 2 + 1)?

    how to apply transform rotate all browse in inline css using jquery

    How to stop default CSS in [closed]

    How to stack text with pure CSS?

    How to print multiple elements in a page individually using css?

    how to make an oval in css?

    How to create desired form with css without using too many div tags?

    How do I make it impossible to highlight text using CSS?