On Nov 24, 2007, at 10:06 PM, Matt Stith wrote:
I believe xpath expressions should start with a double slash, like
$("//html/body")
try that
Not if the initial element is the document root. In that case, it
requires a single slash.
On Nov 24, 2007 5:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
I find something strange in last release. Xpath expressions doesn't
work
For example
var test1 = $('/html/body');
alert(test1.length);
always print 0
As of jQuery 1.2, XPath expressions are no longer supported, unless
you use the XPath plugin:
http://jquery.com/plugins/project/xpath
--Karl