Ah hah!  I got it.

Actually, I might even classify this as IE doing things right and FF
making the mistake (somebody please point out to me why I'm wrong :) )

In my example there were 2 children - one an img tag, and one a div.
Calling text or html on an img tag doesn't make sense to IE and
probably shouldn't to FF either.  So just changing that line to
(something like):

$('#Layer-3').children('div').text( 'some text' );

solved the problem.

On Jun 11, 12:59 pm, Shaun <[EMAIL PROTECTED]> wrote:
> I have a line of jQuery that works fine for FF and Opera, but fails in
> IE with the error 'Unexpected call to method or property access'
>
> The specific line it chokes on is (similar to) this:
> $('#Layer-3').children().text( 'some text' );
>
> The exact line is line 93 of this 
> page:http://psd2cssonline.com/tutorials/tooltips/index.html
>
> It's strange because IE will allow me to do other things (css(...) for
> example) over the children selector, just not text(...) or html(...).
>
> What am I missing?
> Thanks.
>
> --
> Shaun
> [EMAIL PROTECTED]

Reply via email to