$("#focus
var thisVal=$(this)
//判斷文本框的值是否為空
if(thisVal!=""){
$(this)
}else{
$(this)
}
//聚焦型輸入框驗證
$(this)
$(this)
})
var val=$(this)
if(val!=""){
$(this)
}else{
$(this)
}
});
})
$("#keydown
var thisVal=$(this)
//判斷文本框的值是否為空
if(thisVal!=""){
$(this)
}else{
$(this)
}
$(this)
var val=$(this)
$(this)
})
var val=$(this)
if(val!=""){
$(this)
}else{
$(this)
}
})
})
})
</script>
<style type="text/css">
form{width:
padding:
label{display:block;height:
span{position:absolute;float:left;line
height:
h
</style>
</head>
<body>
<form class="border_radius" id="focus">
<h
<label><span>花瓣注冊郵箱</span><input type="text" class="input_txt border_radius" />
</label>
<label><span>密碼</span><input type="text" class="input_txt border_radius" /></label>
</form>
<form class="border_radius" id="keydown">
<h
<label><span>花瓣注冊郵箱</span><input type="text" class="input_txt border_radius" />
</label>
<label><span>密碼</span><input type="text" class="input_txt border_radius" /></label>
</form>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20443.html