87,990
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Document</title>
</head>
<body>
<tr people="1">
<td class="Hui-text-center thead-bg layui-bg-orange">1</td>
<td class="Hui-text-center thead-bg">
<input id="firstname" type="text" class="input-text radius" placeholder="外文姓" item="engName"/>
</td>
<td class="Hui-text-center thead-bg">
<input id="secondname" type="text" class="input-text radius" placeholder="外文名" item="name"/>
</td>
<td class="Hui-text-center thead-bg">
<input id="passportNumber" type="text" class="input-text radius" placeholder="护照号码" item="passportNumber"/>
</td>
<td class="Hui-text-center thead-bg">
<input type="text" class="input-text radius" placeholder="性别" item="sex"/>
</td>
<td class="Hui-text-center thead-bg">
<select id="sex" class="select input-text radius" size="1" id="county" item="nationality">
<option value ="volvo">男</option>
<option value ="volvo">女</option>
</select>
</td>
<td class="Hui-text-center thead-bg">
<input id="borth" type="text" class="input-text radius layuidate" placeholder="出生年月日" item="birthDate"/>
</td>
</tr>
<button onclick="senddata()">提交</button>
<script type="text/javascript">
function senddata(){
var data={};
data.firstname=$("#firstname").val();
data.secondname=$("#secondname").val();
data.passportNumber=$("#passportNumber").val();
data.sex=$("#sex").val();
data.borth=$("#borth").val();
alert(JSON.stringify(data));
}
</script>
</body>
</html>