4
我想预设一个值,但它不工作的textarea。我如何预先填充文本区域与轨道
<%= f.text_area(:self_summary, :input_html => { "date-pre" => "I will get to this later."}, :class => "textareastyle") %>
我想预设一个值,但它不工作的textarea。我如何预先填充文本区域与轨道
<%= f.text_area(:self_summary, :input_html => { "date-pre" => "I will get to this later."}, :class => "textareastyle") %>
<%= f.text_area(:self_summary, :value => "I will get to this later.", :class => "textareastyle") %>
哇。不知何故,更先进的东西比基础知识更省时。 – pratski