Hi,
I'm trying to figure out how to use #replaceWith:. After many
permutations, still no-go. :-(
I want to render 2 divs. When the first is clicked, I want to replace
the second with something else. Any suggestions?
renderContentOn: html
html div
style: 'height: 44px; width: 65px; background-color: red;';
id: 'bob001';
onClick: (html jQuery ajax html: [ :h |
h render: ((h jQuery id: #bob002) replaceWith: Time now
asString).
]);
with: [html text: 'bob001'].
html div
style: 'height: 44px; width: 65px; background-color: green;';
id: 'bob002';
with: [html text: 'bob002'].
TIA,
Bob