[jQuery] Re: insert td before previous td

2008-06-06 Thread Karl Swedberg
In that case, try this... $('table tr').each(function() { $('td:nth-child(4)', this).insertBefore($('td:nth-child(2)', this)); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 6, 2008, at 11:18 AM, Javier Martínez wrote: Richard D. Worth escribió

[jQuery] Re: insert td before previous td

2008-06-06 Thread Javier Martínez
Richard D. Worth escribió: > $("table td:eq(3)").insertBefore($("table td:eq(1)")); > > - Richard > > On Fri, Jun 6, 2008 at 10:57 AM, Javier Martínez <[EMAIL PROTECTED] > > wrote: > > > There is some "short code" way to insert the fourth td of a table > before >

[jQuery] Re: insert td before previous td

2008-06-06 Thread Richard D. Worth
$("table td:eq(3)").insertBefore($("table td:eq(1)")); - Richard On Fri, Jun 6, 2008 at 10:57 AM, Javier Martínez <[EMAIL PROTECTED]> wrote: > > There is some "short code" way to insert the fourth td of a table before > the second td? > > Thanks >