🖋️ JQuery 튜토리얼
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ=="
crossorigin="anonymous"></script>
...
<p class="text">안녕</p>
document.querySelector('.text').innerHTML = '바이';
$('.text').html('바이');
$('.text').css('color', 'blue');
$('.text').addClass('show');
$('.text').removeClass('show');
$('.text').toggleClass('show');
$(.className) 은 querySelectAll 과 같음
<p class="text">안녕</p>
<p class="text">안녕</p>
<p class="text">안녕</p>
// javascript
<script>
$('.text').html('바이');
</script>
바이
바이
바이
<button class="enter-btn">등록버튼</button>
<script>
$('.enter-btn').on('click', () => {
$('.text').slideUp();
$('.text').hide();
});
</script>