請(qǐng)問(wèn)郵箱表單驗(yàn)證是如何實(shí)現(xiàn)提示填寫(xiě)完整的?
<!doctype html>
<html>
<head>
? ? <meta charset="UTF-8">
<title>基礎(chǔ)表單</title>
<link rel="stylesheet" >
</head>
<body>
<form role="form">
? <div>
? ? <label for="exampleInputEmail1">郵箱:</label>
? ? <input type="email" id="exampleInputEmail1" placeholder="請(qǐng)輸入您的郵箱地址">
? </div>
? <div>
? ? <label for="exampleInputPassword1">密碼</label>
? ? <input type="password" id="exampleInputPassword1" placeholder="請(qǐng)輸入您的郵箱密碼">
? </div>
? <div>
? ? <label>
? ? ? <input type="checkbox"> 記住密碼
? ? </label>
? </div>
? <button type="submit" class="btn btn-default">進(jìn)入郵箱</button>
</form>
</body>
</html>
2015-12-15
可以用正則驗(yàn)證