<title>jQuery Element Selection</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
$("button").on("click", function() {
$(":checked").next().text("체크되어 있는 요소는 이 요소입니다.");
<input type="checkbox" name="lecture" value="html"> <span>HTML</span> <br>
<input type="checkbox" name="lecture" value="css"> <span>CSS</span> <br>
<input type="checkbox" name="lecture" value="javascript"> <span>자바스크립트</span> <br>
<input type="checkbox" name="lecture" value="jquery" checked> <span>제이쿼리</span>