Displaying 2 results from an estimated 2 matches for "select_html".
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for
2008 Feb 26
2
Specify HTML options on select_year
Rails 1.2.3
It appears that the select_year helper doesn''t accept HTML attributes as
part of the options array.
Does anyone have a way to successfully pass an :onchange attribute in to
the select_year helper?
I''m going to do it with Javascript directly for now.
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You