Dissabled text field but still post its value on submit


#1

Hi,

I have a text field that gets its updated value from a javascript
function. So I don’t want the user to enter anything into the field. But
I want the value to be part of the parameters when the form is
submitted.

The problem is that when I use :dissable => “true” on the text field its
value is not sent on submit.

How can I fix that, any idea?

Cheers


#2

In this case, you’ll have to use :readonly => true, not disabled.

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)

On Fri, Feb 27, 2009 at 6:07 PM, comopasta Gr


#3

Yeah thanks a lot Maurício!

Cheers!