フォームの検証に問題があります。この例が機能しないのはなぜですか?
HTML
<form action="" method="post">
<label>E-mail:</label>
<input type="text" name="email" placeholder="Email" />
<label>Password:</label>
<input type="password" name="password" placeholder="Password" />
<label>Repeat password:</label>
<input type="password" name="repeat" placeholder="Password repeat" />
<label></label>
<input type="submit" name="submit" class="button" value="Create" />
</form>
jQuery
$(document).ready(function() {
$('form').validate({
rules:
{
email: { required: true }
}
});
});