# Make form have an id

**URL:** <https://www.ruby-forum.com/t/make-form-have-an-id/92657>\
**Category:** Rails\
**Created:** [April 22, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/make-form-have-an-id/92657 "2007-04-22T17:41:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![damian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/34f0e0/32.png) [@damian](https://www.ruby-forum.com/u/damian)\
**Post date:** [April 22, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/make-form-have-an-id/92657/1 "2007-04-22T17:41:20Z")

</div>

Hello all!  
I need to make a form with an id.  
How do I supply HTML attributes to form\_remote\_tag?

Yours sincerely,  
Damian/Three-eyed Fish

---

<div class="post-metadata">

**Author:** ![damian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/34f0e0/32.png) [@damian](https://www.ruby-forum.com/u/damian)\
**Post date:** [April 22, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/make-form-have-an-id/92657/2 "2007-04-22T18:06:21Z")

</div>

On Apr 22, 2007, at 17:40 , Damian wrote:

> I need to make a form with an id.  
> How do I supply HTML attributes to form\_remote\_tag?

Stuff passed in the :html hash will be passed more or less directly  
through to the HTML. So:

form\_remote\_tag(:html =\> {:id =\> “foo”}) should add id=“foo” to the  
form tag.

–  
Jakob S. - [http://mentalized.net](http://mentalized.net)
