阅读背景:

如何在用户选择符合该特定字段的操作之前隐藏特定文本字段

来源:互联网 

I spent time learning Rails and now I'm working on a demo project.The first thing I want the user to do, is to select whether or not they need immediate care on a care request _form. If the user selects "false" then the user will be asked to select a time and date from the next two hidden lines of code, passing in my start_time and start_date. If the user selects "true", I want to use Time.now to get the current time and current date for my start_time and start_date fields when the user clicks the submit button on the request _form. My question is What is the proper way to keep the last two fields hidden until a user selects "false"? requests_form.html.erb I spent time learning Rails and now I'm working




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: