# Rjs: using show and hide, vs replace?

**URL:** <https://www.ruby-forum.com/t/rjs-using-show-and-hide-vs-replace/103833>\
**Category:** Rails\
**Created:** [May 10, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/rjs-using-show-and-hide-vs-replace/103833 "2007-05-10T20:46:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [May 10, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/rjs-using-show-and-hide-vs-replace/103833/1 "2007-05-10T20:46:58Z")

</div>

hi,  
i was wondering when to use show and hide vs replace?

for example

index.rhtml

\<div id ="mynote" ...

\_mypartial.rhtml

...

when using replace and rendering partial mypartial…would that be the  
same as defining the div id “mynote” to display set to hidden and  
updating via show/hide?
