Guandalino, you must have # in your selector if your dom selector is
an id:
$('#content').getSize()

not:
$('content').getSize

On Nov 7, 5:08 pm, guandalino <[email protected]> wrote:
> Hi, I'm starting use Mootools 1.3. I don't understand why some
> Element's method seem not available. Given a div with id='content'
> inside a valid html strict page, if in firebug console I type $
> ("content").appendText("yada"); or $('content').addEvent("click",
> function() {}); things work as expected, but if I invoke other
> Element's methods, like getSize or setStyle I get an error: $
> ("content").getSize is not a function. I also have the error with IE.
>
> What's the cause?
>
> Many thanks,
> best regards.

Reply via email to