删除SELECT换成文字

解决方案 »

  1.   

    <html> 
    <body> 
    <table> 
    <tr> 
    <td width="150"> 
    <select name="dltSource" width=10 > 
    <option value="0">aaaa</option> 
    <option value="1">bbbb</option> 
    <option value="2">cccc</option> 
    </select> 
    </td> 
    </tr> 
    </table> 
    </body> 
    </html>
    用JS把SELECT删除掉 换成文字 比如 aaaa 
      

  2.   

    <html>  
    <body>  
    <table>  
    <tr>  
    <td width="150">  
    aaaaaa 
    </td>  
    </tr>  
    </table>  
    </body>  
    </html>这样么?
      

  3.   

    (?=<select)[\s\S]+(?<=/select>)在js中用正则实现吧 
      

  4.   

    <select name="dltSource" width=10 >  
    <option value="0">aaaa</option>  
    <option value="1">bbbb</option>  
    <option value="2">cccc</option>  
    </select> 这段要删除掉的 用什么属性呢
      

  5.   

    那个正则匹配包括<select></select>里的所有东西 ,你 用这个正则表达式替换掉就行了 比如str.replace(“aaaa”),没时间写了 ,具体的replace的语法你百度下 ,~ 祝好运