Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript event

// An event is triggered when a user clicks on the #button element,
// which then sets the #button element's background-color to blue. 
$('#button').on('click', event => {
  $(event.currentTarget).css('background-color', 'blue');  
});
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #javascript #event
ADD COMMENT
Topic
Name
2+8 =