新手问题 如何禁用下拉列表

nicetyler · May 23, 2017 · Last by nicetyler replied at May 24, 2017 · 1314 hits

怎么在 collection_select 方法中添加属性 disable:disabled,貌似加不了

<%= f.collection_select :category1_id, Shop::Category.find(1).children.active, :id, :name, {:include_blank => ''}, :disabled => true %>

好的谢谢

4 Floor has deleted
Reply to gehao

上不了 google 啊,不过我按照你的关键字百度了一下

上不了 Google 是要减分的。

http://dir.scmor.com/google/

Reply to greatghoul

非常感谢网址我收藏了,顺便给个赞你😁

你们公司居然不提供翻墙?

Reply to kai209209

不提供啊😂 下次找公司找个能翻墙的公司,可以偷偷的浏览下国外的网站😁

You need to Sign in before reply, if you don't have an account, please Sign up first.