Insert Link Path After URL


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('a').each(function()
  2. {
  3. $(this).after(function()
  4. {
  5. var a = $(this).attr('href');
  6. var na = ' <span class="linkAfter">[' + a + ']</span> ';
  7. return na;
  8. });
  9. });
  10. $('.linkAfter').css({
  11. 'font-size': '90%',
  12. 'font-weight': 'normal',
  13. 'text-decoration': 'none'
  14. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.