<title>jQuery start</title?
// case1. download
// script src="./jquery-3.7.1.min.js"></script>
// case2. network
<script src = "https://code.jquery.com/jquery-3.7.1.min.js"></script>
<body>
<h1>jQuery start</h1>
<button id="textBtn">TEXT<button>
<button id="htmlBtn">HTML<button>
<script>
let valJS=document.querySelector('h1');
console.log(valJS);
let valJQ = jQuery('h1');
valJQ = $('h1');
console.log(valJQ);
$('#textBtn').click(()=>{
console.log('textBtn');
console.log(valJS.innerText);
console.log($('h1').text());
$('h1').text('JavaScript');
})
$('#htmlBtn').click(()=>{
console.log('htmlBtn');
$('h1').html('<a href = "#">a태그로 변경</a>);
})
</script>
</body>