jquery 增加投票项例子 不指定

Else , 2008/11/25 10:40 , JQuery资源 , Comments(0) , Reads(1645) , Via Original
[hcode]
<!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>
  <script type="text/javascript" src="http://www.aixq.com/js/jquery.js"></script>
  
  <style type="text/css">
<!--
body,td,th {
  font-size: 13px;
}
body {
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
}
table {width:750px;margin:auto; background-color:#C0C0C0;}
th{height:35px;background-color:#FFFFFF; }
td{background-color:#FFFFFF; line-height:25px;}
a {
  font-size: 13px;
}
a:link {
  text-decoration: none;
  color: #333333;
}
a:visited {
  text-decoration: none;
  color: #666666;
}
a:hover {
  text-decoration: none;
  color: #FF0000;
}
a:active {
  text-decoration: none;
  color: #0000FF;
}


-->
</style>
  
</head>
<body>
  
<div>

</div>

    <div>


<table width="200" border="0" cellspacing="1" cellpadding="3" id="upvote">
  <tr>
    <th colspan="2">添加調查
    <div id="msg" style="color:red;"></div>
  </th>
    </tr>
  
  <tr id="itemap">
    <td width="41px">其它</td>
    <td width="706px">
        排序
        <input name="txtnum" type="text" value="10" id="txtnum" style="width:20px;" />        
         類型
        <input name="txttype" type="text" value="1" id="txttype" style="width:20px;" />        
        </td>    
    </tr>
  <tr>
    <td width="41px">主 題</td>
    <td width="706px"><input name="txttitle" type="text" value="" id="txttitle" style="width:300px;" />
        <a href="javascript:void(0);" onclick="$('#sendctrl').before($(this).parents('tr').next().clone())">增加選項</a>
    </td>
    </tr>
    
  <tr>
    <td>選 項</td>
    <td><label>
  編號:<input readonly="readonly" type="text" style="width:15px" name="id1" value="" />
      <input width="100px" type="text" name="answer1" value=""/>
      其它
      <input  width="50px" type="text" name="other1" value=""/>
    </label>  <a href="javascript:void(0);" onclick="$(this).parents('tr').remove()">删除</a></td>
    </tr>
  <tr id="sendctrl">
    <td> </td>
    <td><label>
      
    <input type="button"  onclick="javascript:itemsave();" value="添加"  />
      <input type="reset" name="button2" id="button2" value="重設" />
    </label></td>
    </tr>
</table>

    
    </div>      
    
</body>
</html>
[/hcode]
Tags: ,
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]