Example 1 using jQuery

1) Static Read/Write, Disabled, and Read-Only Text Inputs

Read/Write:  
Read-Only: readonly="readonly"
Disabled: disabled="disabled"

2) Read/Write, Read-Only, and Disabled Text Inputs With Javascript Control

Read/Write: Read-Only: Disabled:  
Read/Write: Read-Only: Disabled: readonly="readonly"
Read/Write: Read-Only: Disabled: disabled="disabled"

3) Disabled Text Input Populated by Select Box

State:
Corresponding City I: A disabled text box
Corresponding City II:  --  Just a simple <td>. Could also be a div.
Corresponding City III: A hidden input. You can access it via the DOM with id=myhidden.

Back to bohnsack.com (shouldn't work)

Back to bohnsack.com (shouldn't work II)

Back to bohnsack.com