Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery Css width of a div returns undefined. Re: JQuery Css width of a div returns undefined.

#107640
Noel Forte
Participant

Ok, fixed that, but it’s still returning as undefined. This is what the javascript looks like now, but the HTML and CSS are the same as above.

var cssWidth = $('#box').css('width');

alert(cssWidth);