I'm trying to use the show function to display elements in a jQuery
object that contains a block of code I cloned.  I'm having trouble
getting the show function to apply to all the descendants of the code
in the object.  It's probably better if I show an example than try to
describe everything:

This is something like what I've copied:

<table id="itemForm:resources">
  <tbody>
    <tr>
      <td>
        ... more elements, some I've previously hidden using .hide()
      </td>
    </tr>

    <tr>
      <td>
        ...
      </td>
    </tr>

    ...
</table>


I clone like this:

var blockCopy = $("[EMAIL PROTECTED]:resources] tr:first").clone();


The trouble comes when I try to append this cloned block to the end of
the table.  If I just do:

blockCopy.appendTo("[EMAIL PROTECTED]:resources] tbody:first");

It appends the clone correctly, but the hidden fields are still
hidden.


I've tried something like: blockCopy.show();
But that (I'm assuming, since it didn't really do anything) doesn't
apply the show throughout all the block down to the last descendant.

How can I apply show to that cloned block to make the hidden fields
visible again?

Thanks in advance for any ideas and help!  I'm relatively new to
jQuery so any help is greatly appreciated!

- Nick P

Reply via email to