<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<TEXTAREA style="Z-INDEX: 100; LEFT: 168; WIDTH: 112px; POSITION: absolute; TOP: 112; HEIGHT: 112px"
rows="7" cols="11" name="sdf">北京
广州
</TEXTAREA><TEXTAREA style="Z-INDEX: 104; LEFT: 392px; WIDTH: 112px; POSITION: absolute; TOP: 112px; HEIGHT: 112px"
rows="7" cols="11" name="df">1000
2000
3000
4000</TEXTAREA><TEXTAREA style="Z-INDEX: 102; LEFT: 280; WIDTH: 112px; POSITION: absolute; TOP: 112; HEIGHT: 112px"
rows="7" cols="11" name="sdfgfs">本科
转科
</TEXTAREA>
<TABLE id="Table1" style="Z-INDEX: 103; LEFT: 168px; WIDTH: 336px; POSITION: absolute; TOP: 224px; HEIGHT: 138px"
cellSpacing="1" width="336" border="1" bordercolor="#FF0000">
<TR>
<TD height="49" width="95">北京</TD>
<TD height="49" width="119">转科</TD>
<TD height="49">3000</TD>
</TR>
<TR>
<TD width="95" height="45">广州</TD>
<TD width="119" height="45">本科</TD>
<TD height="45">1000</TD>
</TR>
<TR>
<TD width="95"></TD>
<TD width="119"></TD>
<TD></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>

解决方案 »

  1.   

    不明白你的意思,上边是三个textarea,如何双击一行?
    是否三个一起添加到表中一行?
    看样子像是在做组合查询的功能吧..
      

  2.   

    不明白你的意思,上边是三个textarea,如何双击一行?
    答:我也不知道该用什么控减 只能做做样子!!
    是否三个一起添加到表中一行?
    答:是
    看样子像是在做组合查询的功能吧..
    答:差不多
      

  3.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>Untitled Document</title>
    <script language="javascript">
    function Add(){
    if(dltLocation.selectedIndex==-1) {alert("请选择地点!");return;};
    if(dltEducation.selectedIndex==-1) {alert("请选择学历!");return;};
    if(dltMoney.selectedIndex==-1) {alert("请选择钱数!");return;};
    var newRow=tbCondition.insertRow(0);
    newRow.insertCell();
    newRow.insertCell();
    newRow.insertCell();
    alert(dltLocation.value);
    newRow.cells[0].innerText=dltLocation.value;
    newRow.cells[1].innerText=dltEducation.value;
    newRow.cells[2].innerText=dltMoney.value;
    }
    function Delete(){
    //功能比较简单,自己写吧
    }
    </script>
    </head><body>
    <table width="450"  border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150"><select name="dltLocation" id="dltLocation" multiple size="6" style="width:100% ">
    <option value="北京">北京</option>
    <option value="广州">广州</option>
        </select></td>
        <td width="150"><select name="dltEducation" id="dltEducation" multiple size="6" style="width:100% ">
    <option value="本科">本科</option>
    <option value="专科">专科</option>
        </select></td>
        <td width="150"><select name="dltMoney" id="dltMoney" multiple size="6" style="width:100% ">
    <option value="1000">1000</option>
    <option value="2000">2000</option>
    <option value="3000">3000</option>
        </select></td>
      </tr>
      <tr>
        <td align="right"><input name="btnAdd" type="button" value="添加" onClick="Add()"></td>
        <td>&nbsp;</td>
        <td><input name="btnDelete" type="button" value="删除" onClick="Delete()"></td>
      </tr>
      <tr>
        <td colspan="3">
    <table id="tbCondition" width="100%"  border="1" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
    </td>
      </tr>
    </table></body>
    </html>
      

  4.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>Untitled Document</title>
    <script language="javascript">
    function Add(){
    if(dltLocation.selectedIndex==-1) {alert("请选择地点!");return;};
    if(dltEducation.selectedIndex==-1) {alert("请选择学历!");return;};
    if(dltMoney.selectedIndex==-1) {alert("请选择钱数!");return;};
    var newRow=tbCondition.insertRow(0);
    newRow.insertCell();
    newRow.insertCell();
    newRow.insertCell();
    newRow.insertCell();
    alert(dltLocation.value);
    newRow.cells[0].innerText=dltLocation.value;
    newRow.cells[1].innerText=dltEducation.value;
    newRow.cells[2].innerText=dltMoney.value;
    newRow.cells[3].innerHTML='<input type="button" value="删除" onclick="this.parentNode.parentNode.removeNode(true)">';
    }
    function Delete(){
    //功能比较简单,自己写吧
    }
    </script>
    </head><body>
    <table width="450"  border="1" cellspacing="0" cellpadding="0" ID="Table1">
      <tr>
        <td width="150"><select name="dltLocation" id="dltLocation" multiple size="6" style="width:100% ">
    <option value="北京">北京</option>
    <option value="广州">广州</option>
        </select></td>
        <td width="150"><select name="dltEducation" id="dltEducation" multiple size="6" style="width:100% ">
    <option value="本科">本科</option>
    <option value="专科">专科</option>
        </select></td>
        <td width="150"><select name="dltMoney" id="dltMoney" multiple size="6" style="width:100% ">
    <option value="1000">1000</option>
    <option value="2000">2000</option>
    <option value="3000">3000</option>
        </select></td>
      </tr>
      <tr>
        <td align="right" colspan="3"><input name="btnAdd" type="button" value="添加" onClick="Add()" ID="Button1"></td>
        
      </tr>
      <tr>
        <td colspan="3">
    <table id="tbCondition" width="100%"  border="1" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
    </td>
      </tr>
    </table></body>
    </html>