<kurtzd-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org>
2005-May-10 11:39 UTC
CSS id and class in form_remote_tag?
I''m trying to specify the id and class of the form element as generated by form_remote_tag, but I''m not entirely sure what the proper parameters are and where they should go. I apologize if this is stated in the documentation, but I couldn''t seem to get much of an answer from it. Thanks in advance. -Dan
Dan,
You can add an html attribute to your form_remote_tag using the
following syntax:
:html => { :id => "form" }
- Derek
On 5/10/05, kurtzd-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org
<kurtzd-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org>
wrote:> I''m trying to specify the id and class of the form element as
generated by
> form_remote_tag, but I''m not entirely sure what the proper
parameters are
> and where they should go. I apologize if this is stated in the
> documentation, but I couldn''t seem to get much of an answer from
it.
>
> Thanks in advance.
>
> -Dan
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Derek Haynes
VIPDiner.com | CEO
Cell - 404.593.4879