How to replace a block of HTML with another block of HTML using jQuery

Posted by tonsils on Stack Overflow See other posts from Stack Overflow or by tonsils
Published on 2010-04-29T01:10:29Z Indexed on 2010/04/29 1:17 UTC
Read the original article Hit count: 491

Filed under:
|

Hi,

Would appreciate some help with based on a condition, would like to replace the following html block:

    <table class="t12PageBody" cellpadding="0" cellspacing="0" width="100%" summary="">
  <tr><td colspan="2">#REGION_POSITION_01#</td></tr> 
</table>

<table width="100%" summary="">
 <tr>
  <td class="t12ContentBody" valign="top"> #SUCCESS_MESSAGE# #NOTIFICATION_MESSAGE# #BOX_BODY# #REGION_POSITION_04##REGION_POSITION_05##REGION_POSITION_06##REGION_POSITION_07##REGION_POSITION_08#</td>
  <td align="right" valign="top" class="t12ContentBody">#REGION_POSITION_03#<br /></td>
 </tr>
</table>

with this block:

<div id = "banner">
<div class="Logo"></div>
<img src="http://www.abc.com/home/images/spacer.gif" height="35" width="180"  border="0" alt=""> <font class="bannertext">&APPNAME.</font>
<div class="bannerText">
    <div class="hmenu"><ul>&APPLICATION_LINKS.</ul></div>
</div>

I looked at the replace function in query but unsure how to apply.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html