# Visual effect within partial

**URL:** <https://www.ruby-forum.com/t/visual-effect-within-partial/117553>\
**Category:** Rails\
**Created:** [October 18, 2007, 12:17am UTC](https://www.ruby-forum.com/t/visual-effect-within-partial/117553 "2007-10-18T00:17:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 12:17am UTC](https://www.ruby-forum.com/t/visual-effect-within-partial/117553/1 "2007-10-18T00:17:15Z")

</div>

Hello Folks,  
I have a partial that it’s displayed only when the user select “yes” on  
a select box (I do that thru observe\_field)

The partial (\_text.rhtml) code is:

```auto
<p>you have selected YES</p>
```

And it is rendered within a div (id=“confirm”) on add\_object.rhtml

I would like the partial is showed using highlight so I added on  
add\_object.rjs this code:

```auto
page[:confirm].visual_effect :highlight
```

but it doesn’t work.

Where Am I wrong ???  
Have I to create a \_text.rjs and adding the visual effect in this file  
???

THANK YOU
