<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Georgia">Hi,<br>
      <br>
      I'm trying to figure out how to use #replaceWith:. After many
      permutations, still no-go. :-(<br>
      <br>
      I want to render 2 divs. When the first is clicked, I want to
      replace the second with something else. Any suggestions?<br>
      <br>
      renderContentOn: html<br>
      <br>
      &nbsp;&nbsp;&nbsp; html div<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; style: 'height: 44px; width: 65px; background-color:
      red;';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: 'bob001';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: (html jQuery ajax html: [ :h |<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; h render: ((h jQuery id: #bob002) replaceWith: Time
      now asString).<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]);<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [html text: 'bob001'].<br>
      &nbsp;&nbsp;&nbsp; html div<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; style: 'height: 44px; width: 65px; background-color:
      green;';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: 'bob002';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [html text: 'bob002'].<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
      TIA,<br>
      Bob<br>
    </font>
  </body>
</html>