js如何获取checkboxlist选中的文本 ?

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    </head>
    <body >
    <input type="checkbox" onclick="alert(this.nextSibling.nodeValue)"/>aaa
    </body>
    </html>
      

  2.   

    支持1L,不过要看LZ的HTML的结构是怎么样的