# Prototype link\_to\_function

**URL:** <https://www.ruby-forum.com/t/prototype-link-to-function/176082>\
**Category:** Rails\
**Created:** [September 24, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/prototype-link-to-function/176082 "2009-09-24T15:07:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/cdc98d/32.png) [@vladk](https://www.ruby-forum.com/u/vladk)\
**Post date:** [September 24, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/prototype-link-to-function/176082/1 "2009-09-24T15:07:32Z")

</div>

hi everybody! i`m trying to apply this function(prototype):  
\<%= link\_to\_function “reply”, “$(‘main-comment-form’)  
.hide()  
.appendTo(‘comment-#{comment.id} .form-placeholder’) //problem is here  
probably  
.fadeToggle(600);  
$(‘comment\_parent\_id’).setValue(#{comment.id});”%\>

after clicking the link form hides succesfully, but it doesn`t append to  
.form-placeholder

July (September 23, 2009 at 11:15 PM)  

stupid ukrainians!!

how do we specify id and class to append the form using prototype?
