I have a custom form builder that output form elements as <li> tags.
So
<%= form.input :first_name%>
<%= form.input :last_name%>
generates like..
<ol>
<li>
first_name_label - first_name_text
</li>
<li>
last_name_label - last_name_text
</li>
</ol>
I want to provide a link next to the text fields and I do that like..
<%= form.input :first_name%>
<%= form.input :last_name%>
<%= link_to_function "clear", :id => , "this.up('li').remove()" %>
This works fine but the link is located outside of the <li> tag which
causes the formatting to be weired. How can I generate this link and
position it within the <li> tag it is supposed to remove? I think the
answer might be very simple, i am just not clear about how to move an
elements while creating it.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.