Skip to content

Instantly share code, notes, and snippets.

@niceaji
Created April 13, 2023 00:30
Show Gist options
  • Save niceaji/33eda651ebc026fabb9e202a92a682c4 to your computer and use it in GitHub Desktop.
Save niceaji/33eda651ebc026fabb9e202a92a682c4 to your computer and use it in GitHub Desktop.
<form>
id <input type="text" name="id">
pw <input type="text" name="pw">
<button type="submit">로그인</button>
</form>
<h2 id="result"></h2>
.error {
  color:red;
}
.success {
  color:green
}
// 입력한 id,pw가 맞을경우엔 success , 아니면 error출력 
const id = "hello";
const pw = 'world';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment