Replace Text in a Div with text in another Div
<div id="replaceMe">I'm a Girl</div>
<div id="iamReplacement" style="display:none">No your are a Boy Girl</div>
the text in replaceMe should be replaced with the text in iamReplacement
i think it can be done in java script or jquery.. can some one help me on
this..
Tried (not working)
<script>
jQuery('#replaceMe').replaceWith(jQuery('#iamReplacement'));
</script>
No comments:
Post a Comment