programming faqs interview questions tech technical educational freshers guide preparation interviews hr telephonic
try another color:
try another fontsize: 60% 70% 80% 90%
Programming FAQs

Difference between readonly and disabled in html

Average: 3 (4 votes)

DISABLED: disabled field

DISABLED: disabled field values can't be editable, and when we submit the form disabled field values will not be submitted. this property works for all html controls, when we move the control using tab, disabled controls will not get the focus.

READONLY : readonly field values can't be editable, readonly property does not work with drop downs. when we move the control with tab, readonly control gets the focus, but we can't type/edit in that field