Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

addeventlistener

// Using javascript
var element = document.getElementById("#id");
element.addEventListener('click', function(){
	console.log("click");
});

// Using JQuery
$("#id").click(function(){
	console.log("click");
});
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #addeventlistener
ADD COMMENT
Topic
Name
7+7 =