One question, if you're referring to your elements by id, can't you just do:

$('#elmId');

Directly?  Rather than by a parent/child relationship?

If the problem is that you have multiple elements on the same page with the
same id (which is NOT recommended HTML), then I suggest using a class based
solution instead:

$('.container > .elm')

And see if that helps.

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of andrew
Sent: Thursday, January 22, 2009 12:24 PM
To: jQuery (English)
Subject: [jQuery] Is there a problem with Child selectors in Safari with
1.3?


Hi

I've got an application that has a pop up div which has controls that
submit an ajax post before which I'm getting some hidden variables
from within the popup div, I'm using 'live' with the popup div
controls.  I'm referencing the elements by their parent id then their
specific Id, eg $("#container > #elmId").val().  This works fine in
firefox but not in Safari, I get an undefined if I alert the
variables.  It also works fine in both browsers using jquery 1.2.6 but
not with 1.3.

Has anyone else has similar problems?

Reply via email to