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ó:
$("table td:eq(3)").insertBefore($("table td:eq(1)"));

- Richard

On Fri, Jun 6, 2008 at 10:57 AM, Javier Martínez <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:


   There is some "short code" way to insert the fourth td of a table
   before
   the second td?

   Thanks


Yes, but I want the same extended to all table's trs. Is it posible?

Reply via email to