Advertisement
maximus87

submenu titles

May 24th, 2021
813
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery('.first-sub').each(function () {
  2.     var $this = jQuery(this);
  3.     var txt = $this.prev('a').html();
  4.     $this.prepend('<div class="text-before">' + txt + '</div>');
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement