1.2 Identify Javascript and jQuery programming concepts
Previous1.1 Demonstrate knowledge of HTML and CSSNext1.3 Demonstrate the use of Git for version control
Last updated
Last updated
Review jQuery api docs. Review Drupal.behaviors.
jQuery is a feature rich JavaScript library that simplifies accessing JavaScript functions to reduce code duplication. Drupal use to come with jQuery a part of Drupal core.
jQuery is no longer automatically enabled with Drupal 8 you must specify that you want jQuery and what version you wish to use.
Review the for examples of jQuery methods.
For Example:
The jQuery method reduces the set of matched elements to those that match the selector or pass the function's test. Consider a page with a simple list on it:
We can apply this method to the set of list items:
Another jQuery method example would be . Display or hide the matched elements with a sliding motion.