<form>
  <label>이메일<input type="email"/><label>
  <label>비밀번호<input type="password"/><label>
</form>
label {
  display: block;
}
// const $form = $('form');

// const $email = $form.find('input[type="email"]');
// $email.val('user@test.com');

// const $password = $form.find('input[type="password"]');
// $password.val('1234');


const formEl = document.querySelector('form')

const emailEl = formEl.querySelector('input[type="email"]');
emailEl.value = 'user@test.com';

const passwordEl = formEl.querySelector('input[type="password"]');
passwordEl.value = '1234';

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js