This is the entire html. I would expect it would return the HTML tag
as it does with :first, but it errors on the second alert when
using :eq(0)
html
head
script language=javascript src=jquery-1.3.2.js/script
script
$().ready(function() {
I just tested against 1.2.6 and it works. Would this now be considered
a bug in Sizzle?
Shouldn't :first be the same as :eq(0)?
I set up a basic test page with one div in the body. I ran the
following statements to get the HTML element and the first works, but
the second actually throws an error.
alert($(*:has(BODY *:first)).eq(0)[0].tagName);
alert($(*:has(BODY
Is there anyway to write a custom filter which returns the parent
nodes of the selector? ie) div.someClass:parentNode or ancestor:
div.someClass would return the parent element of div.someClass.
I know you can use .parent() in jQuery, but am using Selenium RC and
am limited to using selector
Thanks Dave I think you may be on to something. I think $(*:has(
div.someClass)) would work. Won't be fast, but that's not a concern.
I'll give it a shot tomorrow.
On Oct 21, 12:40 pm, Dave Methvin dave.meth...@gmail.com wrote:
Is there anyway to write a custom filter which returns the parent
: {
field1:[some value]
},
url:[new url]
}
));
return false;
};
}
});
vtjiles wrote:
I
I have an app and want to change the url for all ajax requests to give
them a relative path. I tried to set up a global change using
ajaxSetup and beforeSend, but the url was only updated in the config,
not the request object. Any thoughts on how to do this?
code
$.ajaxSetup({
beforeSend :
I have the fairly simple markup below and am trying to only get only
the checkboxes under the first level LI (Main 1 and Main 2), not the
deeper ones.
ul id=el
li
input type=checkbox value=1 / - Main 1
ul
li
() to .children().
- Richard
On Wed, Sep 17, 2008 at 11:56 PM, vtjiles [EMAIL PROTECTED] wrote:
I have the fairly simple markup below and am trying to only get only
the checkboxes under the first level LI (Main 1 and Main 2), not the
deeper ones.
ul id=el
li
input type
9 matches
Mail list logo