document.getElementById(id).onclick = function(){code}
[링크 : https://www.w3schools.com/js/js_htmldom_document.asp]
$(document).ready(function(){
$("p").dblclick(function(){
$(this).hide();
});
});
'Programming > web 관련' 카테고리의 다른 글
| 시맨틱 코드 (2) | 2018.08.21 |
|---|---|
| sketch 플러그인 (0) | 2018.08.13 |
| eclipse php sftp (0) | 2017.10.03 |
| aptana studio 설치 (0) | 2017.10.03 |
| HTML fieldset / legend (0) | 2017.05.26 |
