[HTML] Textarea disabled maar wil wel kunnen scrollen

Pagina: 1
Acties:

  • GoodspeeD
  • Registratie: April 2002
  • Laatst online: 27-05 15:28
Ik heb een textarea in een form en wil de text niet editbaar hebben, maar wil wel dat mensen kunnen scrollen. Nu heb ik:

code:
1
2
3
<textarea disabled="disabled" name="txtComment" cols="50" rows="1">
    riedel riedel riedel
</textarea>


In bovenstaand geval werkt het scrollen dus ook niet. Iemand een idee?

[ Voor 13% gewijzigd door GoodspeeD op 24-02-2004 17:06 ]


  • Noork
  • Registratie: Juni 2001
  • Niet online
Heb je "read only" ipv disabled ook al geprobeerd?

  • Skaah
  • Registratie: Juni 2001
  • Niet online
<textarea readonly="readonly"></textarea>

Zo wordt ie wel meegestuurt met POST of GET, itt disabled.
The boolean READONLY attribute, new in HTML 4.0 and poorly supported by current browsers, prevents the user from editing the content of the TEXTAREA. Read-only elements are still submitted with the form. The DISABLED attribute, also poorly supported, disables the TEXTAREA. Disabled elements are read-only elements with the added restrictions that the values are not submitted with the form, the elements cannot receive focus, and the elements are skipped when navigating the document by tabbing.

[ Voor 74% gewijzigd door Skaah op 24-02-2004 17:08 ]


  • faabman
  • Registratie: Januari 2001
  • Laatst online: 08-08-2024
is een clientside oplossing met css

ASP:
1
textarea {overflow:scroll;}

Op zoek naar een baan als Coldfusion webdeveloper? Mail me!


  • GoodspeeD
  • Registratie: April 2002
  • Laatst online: 27-05 15:28
Bedankt voor de snelle reacties. Readonly is precies wat ik zoek. :)

  • .oisyn
  • Registratie: September 2000
  • Laatst online: 01:00

.oisyn

Moderator Devschuur®

Demotivational Speaker

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.

Pagina: 1