code.jquery.com 사이트에서 최신버전의 제이쿼리의 minified 링크 복사
선택자를 나타내는 요소의 value
를 가져오는
$('#선택자').val();
<h1>jQuery 기초</h1>
<textarea id="content">jQuery를 배워보자</textarea>
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
<script>
console.log($("#content").val());
</script>