Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

readonly im input-Tag

Empfohlene Antworten

Da hab ich doch schon wieder eine Frage.

Ich wollte ein input-Feld auf readonly setzten, aber Netscape kann den Befehl nicht. Gibt es vielleicht eine andere schöne Lösung? Hab mir schon überlegt, daß ich das entsprechende Feld einfach nicht update, aber so elegant find ich die Vorgehensweise noch nicht.

Bin für jeden Tipp dankbar.

Gruß Laura

Hallo Laura,

readonly funktioniert erst ab Netscape 6.0.

Eine Alternative wäre die Daten in Tabellenfelder einzulesen.

Tja, dann bleibt mir wohl leider nix anderes übrig - danke.

Hi,

versuch es mal mit disabled, vielleciht funzt das ja in beiden. Hab leider keinen NS da im Moment deswegen kann ich es nicht testen.

MfG :)

Disabled funktioniert erst ab IE5 und Netscape 6.

Ausserdem sollte man noch beachten, dass Opera es auch können sollte. ;)

So ist die von Lavados aufgezeigte Variante die suaberste Lösung.

  • 10 Monate später...

Hab im Moment fast das gleiche Problem.

Ich habe ein Textfeld, welches beim Laden der Seite den Status 'readonly' hat

Beim Betätigen eines Buttons, soll 'document.getElementById("eins").removeAttribute("readonly");' ausgeführt werden.

Das funzt ja auch wunderbar.:)

Bei Betätigen eines weiteren Buttons soll das Textfeld wieder auf 'readonly' gesetzt werden. Das funzt aber nicht.

Ich muß dazu sagen, daß ich mit Mozilla arbeite.:confused:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.