Der Unterscheid zwischen ‚disabled‘ und ‚readonly‘ bei Formularen

Published 2007-03-06, 15:46

Da ich selbst gerade dummerweise den Fehler gemacht habe und readonly mit disabled verwechselt habe:

READONLY and DISABLED both remove the functionality of the input field, but to different degrees. READONLY locks the field: the user cannot change the value. DISABLED does the same thing but takes it further: the user cannot use the field in any way, not to highlight the text for copying, not to select the checkbox, not to submit the form. In fact, a disabled field is not even sent if the form is submitted.

http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html

Topic(s): (X)HTML, Link 1 single comment - :/

Diskussion zum Artikel

» Selbst kommentieren

  1. ( 1 )

    Interessante Info. Bisher hatte ich mir noch gar keine Gedanken gemacht, was disabled bei einem Formularfeld bewirkt, und an einen Anwendungsbedarf meinerseits kann ich mich auch nicht erinnern. Wenn nötig, habe ich bisher ausschließlich readonly genutzt.

    Comment von Dauerstress am 9. April 2007

Selbst kommentieren

Trackback-URI, Kommentarfeed. XML-Feed





19 queries. 0,093 seconds.