一般來說都是這樣寫的
disabled=true;
disabled=false;disabled用於textbox不太好,建議用readonly代替

解决方案 »

  1.   

    DISABLED Attribute | disabled Property--------------------------------------------------------------------------------Sets or retrieves the status of a control or style. SyntaxHTML <ELEMENT DISABLED = bDisabled ... >  
    Scripting object.disabled [ = bDisabled ] Possible ValuesbDisabled Boolean that specifies or receives one of the following values:false Default. Control or style is not disabled. 
    true Control or style is disabled. 
     The property is read/write. The property has a default value of false.Expressions can be used in place of the preceding value(s), as of Microsoft?Internet Explorer 5. For more information, see Dynamic Properties.