Re: [jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
thank you very much, your way is better than mine ! 2009/12/24 Šime Vidas > > First of all, the "wrong" code is wrong, look this is your code: > > $(function(){ >var trs = $("#tb tr:not(:first)") > >for( var i=0; i<$trs.length; i++ ) { >//$trs[i].find("td:eq(1

Re: [jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
thanks again, i think i have understand your mind. Thanks! 2009/12/24 Richard D. Worth > The index is passed as the first argument to the callback function you > provide to .each. > > - Richard > > > On Wed, Dec 23, 2009 at 8:49 PM, Eric Zhong > wrote: > >>

Re: [jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
2009/12/24 Richard D. Worth > What about using .each? > > http://docs.jquery.com/Core/each#callback > > - Richard > > > On Wed, Dec 23, 2009 at 8:34 PM, Eric Zhong > wrote: > >> >> >> 2009/12/24 Eric Zhong >> >> when i use for

[jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
2009/12/24 Eric Zhong > when i use for-loop to access elements with array index or get() method it > doesn't work. > but i have to use the index to access, what happen please . > > > ok: http://jsbin.com/olego > wrong: http://jsbin.com/ulixu > wrong:http://jsbin.com/axugi

[jQuery] how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
when i use for-loop to access elements with array index or get() method it doesn't work. but i have to use the index to access, what happen please . ok: http://jsbin.com/olego wrong: http://jsbin.com/ulixu

[jQuery] Re: The most incredible thing happened

2009-12-09 Thread Eric Zhong
i kill the bug, the id must different from the function name http://jsbin.com/ujota3 2009/12/10 Eric Zhong > I just add a pair of "form" label in my code, it doesn't work !!! > > In my project I was called the js file, but in order to show clearly, I put > them

[jQuery] The most incredible thing happened

2009-12-09 Thread Eric Zhong
I just add a pair of "form" label in my code, it doesn't work !!! In my project I was called the js file, but in order to show clearly, I put them together,and Shortened the code Error: http://jsbin.com/oyeki OK: http://jsbin.com/iviba3

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-08 Thread Eric Zhong
two versions. Do you see where the JavaScript version has more spacing > between the rows (at least in Firefox)? That is caused by the empty rows. > > I'll let you sort out what part of your JavaScript code is causing those > extra rows to be added. > > Hope that helps, &

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread Eric Zhong
} }); }); --> 2009/12/8 seasoup > javascript cant read strings over line breaks. > > $("#tb_video").append(' \ > >

[jQuery] The target HTML code works very well, but append() not !!!

2009-12-07 Thread Eric Zhong
when you run the code below, you'll get a very strange result. But if you run the target html that be commented, it works very well , what happen ??? Help!!! = http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.

[jQuery] Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread Eric Zhong
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.js">