[jQuery] Re: Using a selector recursively

2009-05-26 Thread sean
I am using it after an ajax request. I think it might be a bug, that probably will get fixed in 1.3.3. Did you test in Safari, FF, or IE? I am searching through the bug tracker right now. On May 21, 5:31 pm, aquaone aqua...@gmail.com wrote: It works fine for me. Does your actual script block

[jQuery] Re: Using a selector recursively

2009-05-21 Thread aquaone
$(test) should be $(#test). aquaone On Wed, May 20, 2009 at 17:44, sean shaha...@gmail.com wrote: I have the following code: div id=test div class=ajaxApplyIgnore spana href=javascript:ajaxApplyAll(); class=Test1/a/ span /div div spana href=/Logout class=Logout/a/span

[jQuery] Re: Using a selector recursively

2009-05-21 Thread waseem sabjee
There was no need to use find() $(function() { }); would be required from jquery (.myclass, obj) is select my class from within my object ( no need to use .find() ) script $(function() { // you need this var obj = (#test); // object refference $(.ajaxApplyIgnore , obj).addClass(red); // select

[jQuery] Re: Using a selector recursively

2009-05-21 Thread aquaone
That works, yes, but it would create a new jQuery object, defeating much of the purpose of him creating 'obj' in the first place (memory and processing time of creating new jQuery object). As an aside, many devs find it useful to prefix vars for jQuery objects with $. e.g. var $obj = $(#test);

[jQuery] Re: Using a selector recursively

2009-05-21 Thread sean
I forgot the '#' sign in the sample code I provided. The problem I am having is that the code does not work. For some reason, If i remove the span tags, it works, but keeping them in makes it not work.

[jQuery] Re: Using a selector recursively

2009-05-21 Thread aquaone
It works fine for me. Does your actual script block contain a $(document).ready(function(){ ... }); ? On Thu, May 21, 2009 at 16:49, sean shaha...@gmail.com wrote: I forgot the '#' sign in the sample code I provided. The problem I am having is that the code does not work. For some reason,