# RJS replacement problem

**URL:** <https://www.ruby-forum.com/t/rjs-replacement-problem/136658>\
**Category:** Rails\
**Created:** [May 5, 2008, 9:43am UTC](https://www.ruby-forum.com/t/rjs-replacement-problem/136658 "2008-05-05T09:43:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [May 5, 2008, 9:43am UTC](https://www.ruby-forum.com/t/rjs-replacement-problem/136658/1 "2008-05-05T09:43:01Z")

</div>

Hi  
I have a main file edit\_sd\_ticket\_ui .Inside that file a div  
sd\_flow\_items\_find  
is there.I am using modal windows in this form  
([http://livepipe.net/projects/control\_modal/](http://livepipe.net/projects/control_modal/)).For creating this modal  
window i am using a div inside this div named  
search\_sd\_ticket\_description\<%= i %\>  
And a form\_tag is there .My problem the div get replaced but any way the  
code inside the form is not working the second time…I am attaching the  
two files for clarification. I have made the comments inside the files

Please help  
Thanks in advance  
Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [May 5, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/rjs-replacement-problem/136658/2 "2008-05-05T15:17:20Z")

</div>

Make sure you’re not accidentally replacing the

 
 tags  
themselves.

On Mon, May 5, 2008 at 1:43 AM, Sijo Kg
