开发者

How to pass disabled textbox value in Rails?

How may i pass disabled textbox value on controller side ?

Right now i am ge开发者_如何学Gotting nil value for the disabled textbox.


This is an http thing, if you disable a form element it does not get sent over the wire. You can either set the readonly='true' attribute with javascript and style it to appear disabled, or use javascript to copy the value to a hidden field. unfortunately, you there is no way to just tell it to send.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜