manipulating form

Hi,

I work with forms and i won't to set a name for a form to use
javascript functions..
How can i do

Thanks

Hi Zied kh

and i won't to set a name for a form to use

   Assuming this is "I want"
<form id="form_name" name="form_name">

Sijo

hi Sijo k g

But, using rails form :slight_smile:

Hi,

I work with forms and i won’t to set a name for a form to use

javascript functions…

How can i do

Thanks

Zied, you can do the following:

<% form_for some_object, :url => { :action => do_something }, :html => { :name => “some_name” } do |form| % >

<% end %>

BTW, this information could have been found by going to api.rubyonrails.org.

Good luck,

-Conrad

Hi Zied kh

   You can check form_for, form_tag,.. helpers in api.rubyonrails.org

As an example with form_tag you can specify id like

<% form_tag(@sales_order,{:id => 'this_is_form_id'}) do %>

Sijo