日期:2014-05-16  浏览次数:20358 次

关于js 提交表单的问题 ,求高手帮个忙啊
本帖最后由 lingfengbuluo 于 2012-12-14 11:35:45 编辑
做了一个表格分别有各自的按钮,如何按各自的按钮提交各自的表单值,我太菜 弄的点击每个按钮都提交所有的表单值
?<!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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

<!--

.tab {

height: 35px;

width: 100px;

}

.tab1 {

height: 35px;

width: 120px;

}

.tab2 {

height: 30px;

width: 120px;

}

.tab3 {

height: 25px;

width: 120px;

}

-->

</style>

</head>



<body>



<div id="d2">

<form name="myform" action="/cgi-bin/setfile.htm" method="get">

<table width="549" border="1" cellspacing="0" cellpadding="0">

  <tr>

    <th width="142" height="30" scope="col">Title</th>

    <th width="120" scope="col">Parameter</th>

    <th width="120" scope="col">Parameter</th>

    <th width="120" scope="col">Parameter</th>

    <th width="35" scope="col">SET</th>

  </tr>

  <tr>

    <th height="27" scope="row"><div align="left">Set Eth</div></th>

    <td><select name="name" class="tab3" id="select3">

      <option value="eth1">Eth 1</option>

      <option value="eth2">Eth 2</option>

      <option value="eth3">Eth 3</option>

      <option value="eth4">Eth 4</option>

    </select></td>

    <td><select name="name1" class="tab3" id="select">

      <option value="10half">10M Half</option> <!--110m 代表10m -->

      <option value="10full">10M Full</option>

      <option value="100hal"> 100M Half</option>

      <option value="100ful">100M Full</option>

      <option value="autong">Auto-Neg</option>

    </select></td>

    <td>&nbsp;</td>

    <td><input type="submit" id="button" value="Set" /></td>

  </tr>

  

 

  <tr>

    <th height="27"