pixel-d
11/29/2017 - 6:46 PM

jQuery Master

jQuery No Conflict Mode & Traversing the DOM

//-------------------------------------
// USING JQUERY WITH WORDPRESS
//-------------------------------------
 
// No conflict mode
jQuery(document).ready(function ($) {
});
 
(function($){
  $(window).load(function(){
  }); // window.load
})(jQuery); 

 
//-------------------------------------
// TRAVERSING THE DOM
//-------------------------------------
 
// Find immediate previous sibling's child
$(targetDiv).prev().find( "a.learn-more" );
  
// todo: add more examples here