开发者

How to pass disabled textbox value in Rails?

开发者 https://www.devze.com 2023-02-18 11:24 出处:网络
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 ge

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

精彩评论

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