[jQuery] Re: $("div.image")[4].show() Does NOT Work !!

2009-01-28 Thread bartee
> >  $("div.image")[4]." > > > Because that is not a jQuery object > > > On Jan 25, 4:52 pm, donb wrote: > >> Try > > >>  $("div.image").eq(4).show() > > >> I would only be guessing, but  $("div.image")[4] mus

[jQuery] Re: $("div.image")[4].show() Does NOT Work !!

2009-01-25 Thread bartee
bump.. Anyone have any ideas why this does not work.. On Jan 25, 11:01 am, bartee wrote: > This works... > >  $("div.image").slice(4,5).show() > > But this does NOT > >  $("div.image")[4].show() > > Seems like the [4] should work !!

[jQuery] $("div.image")[4].show() Does NOT Work !!

2009-01-25 Thread bartee
This works... $("div.image").slice(4,5).show() But this does NOT $("div.image")[4].show() Seems like the [4] should work !!

[jQuery] var divcount = $("div#div2").length; --- returns wrong value

2009-01-19 Thread bartee
My alert always returns "1" as the divcount value ??? What's up with that.. I have read and tried bunches of things. What am I missing http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en-AU"> Jquery Test $(function() { var divcount = $("div#div2").length; alert(

[jQuery] Re: newby... cannot get $("div").length; to work

2009-01-19 Thread bartee
THANKS to all I had read about this and understand the problem. I am just new. Great to find a place for answers. Now I can start on my 2nd line of code :-)

[jQuery] newby... cannot get $("div").length; to work

2009-01-18 Thread bartee
I have this test code. My alert dialog always show zero as the div count: Help !!! http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en-AU"> Jquery Test var divcount = $("div").length; alert("start=" + divcount);