Displaying 2 results from an estimated 2 matches for "enddateclass".
2006 Jul 26
8
change text_field_tag class
...enddate'',
:with => "''input=''+$(''startdate'').value ") %>
</div>
<div>
<label for="enddate">Booking End Date</label><br />
<%= text_field_tag(''enddate'', @enddate, {:class => @enddateclass,
:readonly => "readonly", :maxlength => "25"} ) %>
</div>
----------
the observe_field detects a new startdate selection from the calendar
handled by startdateChanged action (calculating an endingdate 10 days
after) in the booking_controller
def startdateChange...
2006 Jul 26
0
render :update do | page | to modify a css class string...
...date'',
:with => "''input=''+$(''startdate'').value ")%>
</div>
<div>
<label for="enddate">Booking End Date</label><br />
<%= text_field_tag(''enddate'', @enddate, {:class =>
@enddateclass, :readonly => "readonly", :maxlength => "25"} ) %>
</div>
in my controller when a new startingdate is selected, I modify the
endingdate field value (+10 days) but I should also modify the css
clas that will toggle some dates in the calendar ( a format with...