I think you're looking for .add(). Try this:

var childElmts = $('#P30_DESKTOP_ADD, label[for="P30_DESKTOP_ADD"]');

if(prntElmtID != 'P30_DESKTOP') childElmts.add(
        $('#P30_LT_OPTIONS').parent('td').children()
);

- jason




On Mar 24, 11:43 am, Dan M <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have the following code (which does not work)....
>
>       var childElmts;
>
>       if (prntElmtID == 'P30_DESKTOP') {
>          childElmts = $
> ("#P30_DESKTOP_ADD,label[for='P30_DESKTOP_ADD']");
>       } else {
>          childElmts = $
> ("#P30_LAPTOP_ADD,label[for='P30_LAPTOP_ADD']");
>          childElmts += $("#P30_LT_OPTIONS").parent("td").children();
>       }
>
> How can I accomplish what I'm trying to do in the else block?
>
> Dan

Reply via email to