# Need javasrcipt help

**URL:** <https://www.ruby-forum.com/t/need-javasrcipt-help/103255>\
**Category:** Rails\
**Created:** [May 3, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/need-javasrcipt-help/103255 "2007-05-03T14:13:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuhin\_cse99](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Post date:** [May 3, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/need-javasrcipt-help/103255/1 "2007-05-03T14:13:29Z")

</div>

hi,  
I have two button in my Rails page. one is submit and other is  
delete.  
for submit button, I use:  
\<%= submit\_tag “submit” %\>

In the case of delete button I place a ‘onclick’ javascript function to  
call my ‘set\_value’ function,

In that way I want to open delete\_data.rhtml page and send the cell\_no  
variable in the ‘delete\_data’ controller method.

please help me in syntax of the code.

Amin
