还有一个问题,<OPTION>元素能不能加入自定义属性,我添加了自定义属性怎么没起作用?

解决方案 »

  1.   

    只能remove.
    Syntaxobject.remove(iIndex)
    ParametersiIndex Required. Integer that specifies the zero-based index of the element to remove from the collection. Return ValueNo return value.Standards InformationThis method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 . Applies TocontrolRange 
    Platform Version 
    Win16: 5 
    Win32: 5 
    Windows CE: N/A 
    Unix: 5 
    Mac: 5 
    Version data is listed when the mouse hovers over a link, or the link has focus. 
     areas, controlRange, options, SELECT 
    Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms.