alan9090
V2EX  ›  编程

网页兼容性问题,在 IE 页面功能正常,在火狐和 360 就不正常

  •  
  •   alan9090 · Mar 23, 2016 · 2077 views
    This topic created in 3707 days ago, the information mentioned may be changed or developed.

    TypeError: document.forms[0].showList.options is not a function

    function func_select_all1() { for (i=document.forms[0].showList.options.length-1; i>=0; i--) document.forms[0].showList.options(i).selected=true; }

     <html:select   property="showList"   multiple="true" ondblclick="func_delete();"  style="width:200;height:280" >   
    <html:options   collection="showList"   property="moduleid"   labelProperty="mytableStandardmodule.displayname"></html:options>   
    

    </html:select>

    <input type="button" value=" 全 选 " onClick="func_select_all1();" class="SmallInput" id="button2">
    </td>
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2863 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:38 · PVG 18:38 · LAX 03:38 · JFK 06:38
    ♥ Do have faith in what you're doing.