Created
August 27, 2015 01:55
-
-
Save seka/0fc91866a4a602db8ff4 to your computer and use it in GitHub Desktop.
An invalid form control with name='' is not focusable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>sample html</title> | |
</head> | |
<body> | |
<form id="hoge"> | |
<fieldset> | |
<legend>test form</legend> | |
<input required> | |
</fieldset> | |
<button type="submit">submit</button> | |
</form> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script> | |
(function() { | |
$('#hoge').submit(function(e) { | |
e.preventdefault(); | |
}); | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
err: An invalid form control with name='' is not focusable.
Why this happens?