Essential Grid WP
09.04.2016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
// change the class name below to the class name for the description's skin element var descriptionClassName = 'eg-jefferson-element-9'; jQuery('.esgbox').on('click', function() { jQuery('.esgbox').each(addDescriptions); }); function addDescriptions() { var $this = jQuery(this); $this.attr('data-jbdescription', $this.closest('li').find('.' + descriptionClassName).html()); } |