Solved

Disabled vs Readonly property for text boxes

Posted on 2012-03-15
2
309 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
ID: 37726134
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
ID: 37726161
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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 …

839 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