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.
精彩评论