<td>
  <html:text styleId="ypmc" name="appdoc" property="value(ypmc)" styleClass="inputBox" onfocus="this.className='inputBoxMutlineF'" onblur="this.className='inputBox'"/>                         
</td>想要在JAVASCRIPT中把readonly或disabled设置为true document.getElmentById("ypmc").readOnly = true;
 document.getElmentById("ypmc").disabled = true;
 document.getElmentById("ypmc").disabled = disabled;都是报错,“对象不支持此属性或方法”
谁帮忙看下啊