Yeah, I see what you mean. What about .findAndSelf(selector)? Trying to
stick with existing naming conventions...
Do you have some sample scenarios to go along with this need? Like actual
HTML, etc. Would you mind filing a new enhancement ticket for this?
http://dev.jquery.com/newticket
--
Brandon
While it will be nice to pass in a selector to andSelf, it's a shame
you'll have to repeat the selector in both the 'find' and 'addSelf'.
I'd still rather there be only one function necessary. It's an
awfully common pattern. Honestly, I wish 'find' had been this way
from the start, and there was
FYI... There is an open enhancement ticket that proposes adding an optional
selector to the .andSelf() method. http://dev.jquery.com/ticket/4446
--
Brandon Aaron
On Mon, May 4, 2009 at 5:11 PM, Pappy wrote:
>
> Just curious... what's the jQuery-way of saying "Give me all children
> that match a
>From the link you posted you have a library clash going on.
Scriptaculous 1.5.1 conflicts with jQuery, even a basic ID query is
not working correctly. prototype which is also included also seems to
be broken.
On Jan 5, 1:21 pm, Ricardo Tomasi wrote:
> For some reason I was sure you were French!
For some reason I was sure you were French! hehe :D
In the HTML you posted, everything is inside the #header div.
#menu_lateral_usuario and #footer are not children of #container, they
are way deeper into the DOM
tree. Since everything is contained by #header, it doesn't need to be
excluded. The
Hi Brian,
This is a real code. I can't modify it cause not my code:
http://pastebin.com/m2e4cf3ea
Thanks for help!
Dirceu Barquette
What does #container look like? Can you post an example of just that
element with its HTML?
On Mon, Jan 5, 2009 at 12:53 AM, Dirceu Barquette
wrote:
> Hi Ricardo,
>
> Thats right! I know it works. But not with the dirty code of my job, both
> doesn't work...
> You are from Brazil like me. Don't
Hi Ricardo,
Thats right! I know it works. But not with the dirty code of my job, both
doesn't work...
You are from Brazil like me. Don't you?
See the project at:
http://calango.barquettenet.net/~dirceu/cva//login:dirceu,
password:senha
you can click at "Adicionar projetos". I injected jQuery a
Both ways do work, as demonstrated here:
http://jsbin.com/eruje/
On Jan 4, 5:53 pm, "Dirceu Barquette"
wrote:
> Thanks a lot!
> But it doesn't works... :-(
>
> I get a really dirty code to add modules. I wish inject a pretty good jQuery
> code, but is impossible!!!
>
> thanks your attention!
>
Not works too...
Thank you.
Dirceu Barquette
2009/1/4 Kean
>
> This might be shorter.
>
> $("#container > :not(#header, #content, #footer)").empty();
>
> - Kean
>
> Tested with Sizzle but not jQuery 1.2.6
>
> On Jan 4, 11:08 am, "John Resig" wrote:
> > Maybe:
> > $("#container").children().no
Thanks a lot!
But it doesn't works... :-(
I get a really dirty code to add modules. I wish inject a pretty good jQuery
code, but is impossible!!!
thanks your attention!
Dirceu Barquette
2009/1/4 John Resig
>
> Maybe:
> $("#container").children().not("#header, #content, #footer").empty();
>
This might be shorter.
$("#container > :not(#header, #content, #footer)").empty();
- Kean
Tested with Sizzle but not jQuery 1.2.6
On Jan 4, 11:08 am, "John Resig" wrote:
> Maybe:
> $("#container").children().not("#header, #content, #footer").empty();
>
> --John
>
> On Sun, Jan 4, 2009 at 2:05
Maybe:
$("#container").children().not("#header, #content, #footer").empty();
--John
On Sun, Jan 4, 2009 at 2:05 PM, Dirceu Barquette
wrote:
> Hi all!
>
> Is there better way?
>
> var elem = $('#container')[0];
> var arr = ["header","content","footer"];
> jQuery.each(elem.childNodes,function(
Interestingly $("title").text('new'); changes the title in the DOM, you can
see it in firebug, but it doesn't change it in the window.
Glen
On 6/1/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
jQuery is not needed for this, try:
document.title = "...";
~Sean
jQuery is not needed for this, try:
document.title = "...";
~Sean
No need for jquery here, using normal javascript would be much faster.
document.title = "blahblahblah";
(i think :-\ )
On 6/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
Subject line is the question. How do I use JQuery to set the page
title (what goes in the tags)?
Thanks, - Da
16 matches
Mail list logo