[Javascript] Allow select on disabled field

Arno Kuhl akuhl at telkomsa.net
Mon Sep 7 01:24:01 CDT 2009


-----Original Message-----
From: javascript-bounces at lists.evolt.org
[mailto:javascript-bounces at lists.evolt.org] On Behalf Of Mike Dougherty
Sent: 04 September 2009 03:06 PM
To: JavaScript List
Subject: Re: [Javascript] Allow select on disabled field

On Fri, Sep 4, 2009 at 2:41 AM, Arno Kuhl<akuhl at telkomsa.net> wrote:
> Is there a way I can select data in an input field in FF (ready to be 
> copied to clipboard) but still disable edit?

make the field readonly?  You'll be able to select it, but not edit.
I vaguely recall that readonly fields are not send with the form controls to
the server upon submission.
_______________________________________________

Thanks Mike, that's exactly what I was looking for. I knew I'd done this
before but couldn't for the life of me remember how.

Cheers
Arno




More information about the Javascript mailing list