console
$(document).ready(function(){
$("input").select(function(){
alert("文本已选中!");
});
});
$(document).ready(function () {
$("#tijiao").click(function(){
if($(":password").val().length==0)
{
$("#aaa").html("密码不能为空");
}
if($(":password").val().length!=0)
{
$("#aaa").html("输入正确");
}
});
});
$(document).ready(function(){
$("#chongzhi").click(function(){
$("#neirong").val('');
});
});
<div id="note">
<h2>联系我们</h2>
<p>本网站自开创以来很感谢各位朋友对本网站的支持,当然本网站还有很多不足之处需要各位朋友的意见和建议,如果您对我们的网站有改进的想法请在下列输入对我们的看法,我们第一时间看到后将做出改进,以便更好的为您服务。</p>
<p id="aaa" ></p>
帐号: <input type="text" name="name"><br/>
密码: <input type="password" name="pwd" value="123"><br/>
<p>性别:</p>
<input type="radio" name="sex" value="male">男<br/>
<input type="radio" name="sex" value="female">女<br/>
<p>您不满意的地方为:</p>
<input type="checkbox" name="vehicle" value="1">音乐收录较少<br/>
<input type="checkbox" name="vehicle" value="2">歌手收录较少<br/>
<input type="checkbox" name="vehicle" value="3">页面太少<br/>
<input type="checkbox" name="vehicle" value="4">歌手介绍较少<br/>
<input type="checkbox" name="vehicle" value="5">其他<br/>
<textarea id="neirong" rows="8" cols="45">
请在这里输入...
</textarea>
<input id="tijiao" type="submit" value="发送">
<input id="chongzhi" type="reset" value="重置">
<button><a href="http://jsrun.net/UtkKp/show">返回首页</a></button>
</div>
#note
{
border:2px solid red;
width: 400px;
height: 750px;
margin:0 auto;
}