这段时间,刚刚学习了jQuery.就想着写一个小demo总结一下.如何获取input标签的值.发现框架是真的好用.方便了很多.
//下面是获取值的html界面代码
<!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>
div{
margin:100px;
font-size:24px;
}
div input{
font-size:24px;
}
</style>
</head>
<script src="jquery-2.1.1.min.js"></script>
<script src="user.js"></script>
<body>
<div>
<input type="text" placeholder="账号" id="zh"/>
<p/>
<input type="radio" name="sex" value="0" />