Solved

Disabled vs Readonly property for text boxes

Posted on 2012-03-15
2
305 Views
Last Modified: 2012-03-23
Is there any disadvantage using the disabled over the readonly for a text box?  I was told it was a better practice to use readonly.  I cannot seem to find any reference to this being a best practice.
0
Comment
Question by:monica73174
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 250 total points
Comment Utility
if you make a text box disabled, then you wont be able to get its value, and it won't get submitted to the server.
0
 
LVL 14

Assisted Solution

by:systan
systan earned 250 total points
Comment Utility
when disabled you can't get/set a value
when readonly you can get value but you can't set, on textbox you can
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now