[jQuery] Re: getting DOM values

2007-05-29 Thread Ⓙⓐⓚⓔ
$('#foo')[0].clientWidth On 5/29/07, pd [EMAIL PROTECTED] wrote: Hi BjQ (before jQuery) I can do this: document.getElementById('foo').clientWidth to get a DOM value that Firebug tells me is set to something other than 'undefined'. I can't figure out how to the do same in AjQ (after

[jQuery] Re: getting DOM values

2007-05-29 Thread Brandon Aaron
You can access the regular dom properties/methods by extracting the element from the jQuery collection. $('#foo').get(0).clientWidth You can also just use bracket notation. $('#foo')[0].clientWidth You could also use the Dimensions plugin which helps abstract some cross browser issues with

[jQuery] Re: getting DOM values

2007-05-29 Thread Brandon Aaron
Here are the docs for .get( Number ) http://jquery.bassistance.de/api-browser/#getNumber -- Brandon Aaron On 5/29/07, pd [EMAIL PROTECTED] wrote: Thanks guys, super-fast reply :) Is this documented anywhere? I've scanned through the API and didn't see anything for what seems to be a pretty