markh
July 15, 2010, 8:28am
1
How do I set an id attribute like id=“datepicker” in an input text_field
using a form helper.
I tried this:-
<%= f.text_field :paid_date, :id=“datepicker” %>
but it produces an error.
Note that I want as
the result, not which
is all I can find in the API.
markh
July 15, 2010, 9:52am
2
On 15 July 2010 07:28, Mark H. [email protected] wrote:
How do I set an id attribute like id=“datepicker” in an input text_field
using a form helper.
I tried this:-
<%= f.text_field :paid_date, :id=“datepicker” %>
but it produces an error.
Note that I want as
the result, not which
is all I can find in the API.
Can you not just manage with the default id which should be
<model_name>_paid_date I think?
Colin
markh
July 15, 2010, 3:20pm
3
Can you not just manage with the default id which should be
<model_name>_paid_date I think?
Colin
The jQuery datepicker calendar wants id=“datepicker” on the input field.
markh
July 15, 2010, 3:24pm
4
Mark H. wrote:
Can you not just manage with the default id which should be
<model_name>_paid_date I think?
Colin
The jQuery datepicker calendar wants id=“datepicker” on the input field.
I found the error, I had omitted a closing “>” on the preceding td
element. Now I just have to deal with the calendar wanting to wrap the
arrows for month selection
markh
July 15, 2010, 3:45pm
5
Mark H. wrote:
Mark H. wrote:
Can you not just manage with the default id which should be
<model_name>_paid_date I think?
Colin
The jQuery datepicker calendar wants id=“datepicker” on the input field.
I found the error, I had omitted a closing “>” on the preceding td
element.
I strongly suggest using HAML, not ERb, for your views. Besides lots of
other advantages, you’ll never leave off a > again!
Best,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]