[jQuery] Re: Is there an "append if" type function in jquery

2009-07-11 Thread Ricardo
That's a lot of work for something that jQuery already does: http://snipt.org/kpgi On Jul 10, 5:45 pm, "B.I." wrote: > I had a code that looks like this for now: > >     var rowObj = $.create('tr', {'id': "pod" + currPOCount, 'valign': > 'top'}) >     .append($.create('td') >         .append($.c

[jQuery] Re: Is there an "append if" type function in jquery

2009-07-10 Thread James
It's not available out of the box with jQuery, but here's a plugin that does chainable if statements: http://benalman.com/projects/jquery-iff-plugin/ Never used it myself so I can't common on it. On Jul 10, 10:45 am, "B.I." wrote: > I had a code that looks like this for now: > >     var rowObj