보충일지05. javascript, jquery, ajax, 전광판


보충일지05. javascript, jquery, ajax,  전광판

jquery ajax를 이용해 hide 메소드 사용해보기 jquery를 쓰기 위해 ajax cdn을 사용한다. 1) 클릭하면 자기 자신이 사라지는 메소드 hide <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"> </script> <script> $(document).ready(function(){ //화면이 모두 로딩된 다음 실행됨 $("p").click(function(){ $(this).hide(); }); }) </script> </head> <body> <p>hello1</p> <p>hello2</p> <p>hello3</p> </body> </html> 2)체크박스 prop <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.mi...


#ajax #hide #javascript #jquery #보충일지 #전광판

원문링크 : 보충일지05. javascript, jquery, ajax, 전광판