Hello,
After reading and reading the documentation, I can’t append some
javascript function into a select.
It’s not possible ?
documentation:
select(object, method, choices, options = {}, html_options = {})
some code:
return select(:id, :year, [ [‘2008’, 2008],
[‘2007’, 2007],
[‘2006’, 2006]], :selected => session[:user_year], :onChange =>
‘enterprise_function();’ )