[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread Remy Sharp
You need to wrap the jQuery in a 'ready' method - otherwise your JS is running before the DOM is ready: $(function () { $(//[EMAIL PROTECTED]'2']).hide(); $(//[EMAIL PROTECTED]'3']).hide(); }); Making this change works. On Sep 26, 10:45 am, julio [EMAIL PROTECTED] wrote: Hi, I have this

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread julio
it doesn't work for me. I have used $(function() { and $(document).ready(function() { but nothing works I'm using firefox 2.0.6 On 26 Set, 13:33, Remy Sharp [EMAIL PROTECTED] wrote: You need to wrap the jQuery in a 'ready' method - otherwise your JS is running before the DOM is ready:

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread Erik Beeson
If you're using jQuery 1.2 or later, you need the XPath plugin. See here: http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin --Erik On 9/26/07, julio [EMAIL PROTECTED] wrote: it doesn't work for me. I have used $(function() { and $(document).ready(function() { but

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread julio
I'm using (compressed) jquery version 1.2.1 I have downloaded plugin and renamed it I have transformed my test page like this: html head titleA test page/title script type=text/javascript src=jquery.js/script script type=text/javascript src=jquery.xpath.js/script /head body script

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread julio
Using develop version of jquery 1.2.1 it doesn't work but using version 1.1.4 (and so without plugin) it works can be it considered a jquery 1.2.1 bug? On 26 Set, 14:01, julio [EMAIL PROTECTED] wrote: I'm using (compressed) jquery version 1.2.1 I have downloaded plugin and renamed it I