-
[🙌 HTML&jQuery] HTML 속 jQuery 사용프로그래밍/HTML&CSS 2020. 11. 24. 18:13반응형
<head> <script src="http://code.jquery.com/jquery-3.5.1.min.js"></script> <script type="text/javascript"> $(function(){ $("#like_button").click(function(){ alert("실행되는거맞어?"); }) }); </script> </head> <!-- ************************ --> <body> <button id="like_button"> 좋아요 </button> </body>
head안에 제이쿼리 cdn을 넣어주고 그 밑에 <scripts> 태그를 사용해 넣어주면 된다!
반응형'프로그래밍 > HTML&CSS' 카테고리의 다른 글
[🙌 CSS] 예쁜 글씨체 적용하기 (CSS 폰트적용, 구글 폰트 활용) (0) 2022.07.09 [🙌 CSS] 배경이미지 화면에 맞게 꽉차게 지정하기 (0) 2020.11.18