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
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:
>
>>
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
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
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
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
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
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,
&
}
});
});
-->
2009/12/8 seasoup
> javascript cant read strings over line breaks.
>
> $("#tb_video").append(' \
> >
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.
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
jquery.js">