I have the following mark up that I want to remove just the text "This
is text I want to remove" but I want to leave the <td> in place and
expand its size. Actually I want to increase the size of the row
containing the text I want to remove. BTW I have no control over the
markup and there are tables embedded within tables.

I have been semi-sucessful with the following syntax:

$(".sub-section-row").filter(":contains( This is text I want to
remove)").text("");

However it removes the entire row and not just the text. I want to
remove the text and increase the size of the row and or the row below
it so that when I print it out I have room for hand writtten notes. So
my question is how do I find and remove specific text but leave the
surrounding html intact and how do I find rows or td's that contain no
text and increase their size. I am trying to increase the padding on
the tr class sub-section-row where there is no textual information.

Thank you!
Mike

Markup

<tr class="sub-section-row" valign="top">
     <td colspan="10">
          <table width="100%" cellspacing="0" cellpadding="1">
               <tbody>
                  <tr class="sub-section-row" valign="top">
                     <td align="center">
                     <br/>
                       This is text I want to remove
                     </td>
                  </tr>
                  <tr class="sub-section-row" valign="top">
                     <td align="right">
                     <br/>
                     </td>
                  </tr>
               </tbody>
          </table>
     </td>
</tr>

Reply via email to